Skip to content

Commit a7a4783

Browse files
chore: regenerate common templates (#296)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/9de91212-b3fd-4656-a4ea-843920e4238e/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@5f6ef0e Source-Link: googleapis/synthtool@9593c3b Source-Link: googleapis/synthtool@6abb590 Source-Link: googleapis/synthtool@5a506ec Source-Link: googleapis/synthtool@7c53709
1 parent aff2b09 commit a7a4783

7 files changed

Lines changed: 78 additions & 27 deletions

File tree

.github/CODEOWNERS

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
# For syntax help see:
55
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
66

7-
* @googleapis/yoshi-java
7+
# The @googleapis/api-logging is the default owner for changes in this repo
8+
* @googleapis/yoshi-java @googleapis/api-logging
9+
**/*.java @googleapis/api-logging
810

911
# The java-samples-reviewers team is the default owner for samples changes
10-
samples/**/*.java @googleapis/java-samples-reviewers
12+
samples/**/*.java @googleapis/java-samples-reviewers

.github/snippet-bot.yml

Whitespace-only changes.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
on:
2+
pull_request:
3+
name: auto-merge-readme
4+
jobs:
5+
approve:
6+
runs-on: ubuntu-latest
7+
if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme'
8+
steps:
9+
- uses: actions/github-script@v3.0.0
10+
with:
11+
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
12+
script: |
13+
// only approve PRs from yoshi-automation
14+
if (context.payload.pull_request.user.login !== "yoshi-automation") {
15+
return;
16+
}
17+
18+
// only approve PRs like "chore: release <release version>"
19+
if (!context.payload.pull_request.title === "chore: regenerate README") {
20+
return;
21+
}
22+
23+
// only approve PRs with README.md and synth.metadata changes
24+
const files = new Set(
25+
(
26+
await github.paginate(
27+
github.pulls.listFiles.endpoint({
28+
owner: context.repo.owner,
29+
repo: context.repo.repo,
30+
pull_number: context.payload.pull_request.number,
31+
})
32+
)
33+
).map(file => file.filename)
34+
);
35+
if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) {
36+
return;
37+
}
38+
39+
// approve README regeneration PR
40+
await github.pulls.createReview({
41+
owner: context.repo.owner,
42+
repo: context.repo.repo,
43+
body: 'Rubber stamped PR!',
44+
pull_number: context.payload.pull_request.number,
45+
event: 'APPROVE'
46+
});
47+
48+
// attach automerge label
49+
await github.issues.addLabels({
50+
owner: context.repo.owner,
51+
repo: context.repo.repo,
52+
issue_number: context.payload.pull_request.number,
53+
labels: ['automerge']
54+
});

.kokoro/release/publish_javadoc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ popd
6262
# V2
6363
mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/"
6464

65-
pushd target/devsite
65+
pushd target/devsite/reference
6666

6767
# create metadata
6868
python3 -m docuploader create-metadata \

CODE_OF_CONDUCT.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- # Generated by synthtool. DO NOT EDIT! !-->
12
# Code of Conduct
23

34
## Our Pledge
@@ -69,12 +70,12 @@ dispute. If you are unable to resolve the matter for any reason, or if the
6970
behavior is threatening or harassing, report it. We are dedicated to providing
7071
an environment where participants feel welcome and safe.
7172

72-
Reports should be directed to *[PROJECT STEWARD NAME(s) AND EMAIL(s)]*, the
73-
Project Steward(s) for *[PROJECT NAME]*. It is the Project Steward’s duty to
73+
Reports should be directed to *googleapis-stewards@google.com*, the
74+
Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to
7475
receive and address reported violations of the code of conduct. They will then
7576
work with a committee consisting of representatives from the Open Source
7677
Programs Office and the Google Open Source Strategy team. If for any reason you
77-
are uncomfortable reaching out the Project Steward, please email
78+
are uncomfortable reaching out to the Project Steward, please email
7879
opensource@google.com.
7980

8081
We will investigate every complaint, but you may not receive a direct response.

renovate.json

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,6 @@
1717
],
1818
"versionScheme": "docker"
1919
},
20-
{
21-
"packagePatterns": [
22-
"^com.google.api:gax",
23-
"^com.google.auth:",
24-
"^com.google.cloud:google-cloud-core",
25-
"^io.grpc:",
26-
"^com.google.guava:"
27-
],
28-
"groupName": "core dependencies"
29-
},
30-
{
31-
"packagePatterns": [
32-
"^com.google.http-client:",
33-
"^com.google.oauth-client:",
34-
"^com.google.api-client:"
35-
],
36-
"groupName": "core transport dependencies"
37-
},
3820
{
3921
"packagePatterns": [
4022
"*"
@@ -63,6 +45,16 @@
6345
"semanticCommitType": "chore",
6446
"semanticCommitScope": "deps"
6547
},
48+
{
49+
"packagePatterns": [
50+
"^junit:junit",
51+
"^com.google.truth:truth",
52+
"^org.mockito:mockito-core",
53+
"^org.objenesis:objenesis"
54+
],
55+
"semanticCommitType": "test",
56+
"semanticCommitScope": "deps"
57+
},
6658
{
6759
"packagePatterns": [
6860
"^com.google.cloud:google-cloud-"
@@ -78,4 +70,4 @@
7870
],
7971
"semanticCommits": true,
8072
"masterIssue": true
81-
}
73+
}

synth.metadata

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-logging.git",
7-
"sha": "961fea4d0e3f5adbc63b14d134e15685144ce6a9"
7+
"sha": "8da58c83b5d1eae187026b3c4901352eaf635b36"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "27e0e916cbfdb3d5ff6639b686cc04f78a0b0386"
22+
"sha": "5f6ef0ec5501d33c4667885b37a7685a30d41a76"
2323
}
2424
}
2525
],
@@ -42,7 +42,9 @@
4242
".github/PULL_REQUEST_TEMPLATE.md",
4343
".github/readme/synth.py",
4444
".github/release-please.yml",
45+
".github/snippet-bot.yml",
4546
".github/trusted-contribution.yml",
47+
".github/workflows/approve-readme.yaml",
4648
".github/workflows/auto-release.yaml",
4749
".github/workflows/ci.yaml",
4850
".github/workflows/formatting.yaml",

0 commit comments

Comments
 (0)