Skip to content

Commit 7d3fd07

Browse files
committed
Merge branch 'main' into googleapisgh-1375/custom-write-timeout-executor
2 parents 94e762c + 9bdbbd1 commit 7d3fd07

File tree

52 files changed

+913
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+913
-140
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
114
docker:
2-
image: gcr.io/repo-automation-bots/owlbot-java:latest
3-
digest: sha256:a4d7b2cfc6a9d6b378a6b2458740eae15fcab28854bd23dad3a15102d2e47c87
15+
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
16+
digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93

.github/.OwlBot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515
docker:
16-
image: "gcr.io/repo-automation-bots/owlbot-java:latest"
16+
image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest"

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88

99
# The java-samples-reviewers team is the default owner for samples changes
1010
samples/**/*.java @googleapis/java-samples-reviewers
11+
12+
# Generated snippets should not be owned by samples reviewers
13+
samples/snippets/generated/ @googleapis/yoshi-java

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you are still having issues, please include as much information as possible:
2121
General, Core, and Other are also allowed as types
2222
2. OS type and version:
2323
3. Java version:
24-
4. google-http-client version(s):
24+
4. version(s):
2525

2626
#### Steps to reproduce
2727

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ Thank you for opening a Pull Request! Before submitting your PR, there are a few
55
- [ ] Appropriate docs were updated (if necessary)
66

77
Fixes #<issue_number_goes_here> ☕️
8+
9+
If you write sample code, please follow the [samples format](
10+
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).

.github/auto-label.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
requestsize:
15+
enabled: true

.github/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ branches:
1010
handleGHRelease: true
1111
releaseType: java-backport
1212
branch: 1.40.x
13+
- bumpMinorPreMajor: true
14+
handleGHRelease: true
15+
releaseType: java-backport
16+
branch: 1.41.x

.github/sync-repo-settings.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ branchProtectionRules:
1313
- windows
1414
- dependencies (8)
1515
- dependencies (11)
16-
- lint
1716
- clirr
1817
- cla/google
1918
- pattern: 1.39.2-sp
@@ -44,6 +43,19 @@ branchProtectionRules:
4443
- lint
4544
- clirr
4645
- cla/google
46+
- pattern: 1.41.x
47+
isAdminEnforced: true
48+
requiredApprovingReviewCount: 1
49+
requiresCodeOwnerReviews: true
50+
requiresStrictStatusChecks: false
51+
requiredStatusCheckContexts:
52+
- units (8)
53+
- units (11)
54+
- windows
55+
- dependencies (8)
56+
- dependencies (11)
57+
- clirr
58+
- cla/google
4759
permissionRules:
4860
- team: yoshi-admins
4961
permission: admin

.github/workflows/approve-readme.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# Github action job to test core java library features on
15+
# downstream client libraries before they are released.
116
on:
217
pull_request:
318
name: auto-merge-readme
@@ -6,7 +21,7 @@ jobs:
621
runs-on: ubuntu-latest
722
if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme'
823
steps:
9-
- uses: actions/github-script@v3
24+
- uses: actions/github-script@v6
1025
with:
1126
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
1227
script: |

.github/workflows/auto-release.yaml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# Github action job to test core java library features on
15+
# downstream client libraries before they are released.
116
on:
217
pull_request:
318
name: auto-release
@@ -6,7 +21,7 @@ jobs:
621
runs-on: ubuntu-latest
722
if: contains(github.head_ref, 'release-please')
823
steps:
9-
- uses: actions/github-script@v3
24+
- uses: actions/github-script@v6
1025
with:
1126
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
1227
debug: true
@@ -16,13 +31,13 @@ jobs:
1631
return;
1732
}
1833
19-
// only approve PRs like "chore: release <release version>"
20-
if ( !context.payload.pull_request.title.startsWith("chore: release") ) {
34+
// only approve PRs like "chore(main): release <release version>"
35+
if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) {
2136
return;
2237
}
2338
2439
// only approve PRs with pom.xml and versions.txt changes
25-
const filesPromise = github.pulls.listFiles.endpoint({
40+
const filesPromise = github.rest.pulls.listFiles.endpoint({
2641
owner: context.repo.owner,
2742
repo: context.repo.repo,
2843
pull_number: context.payload.pull_request.number,
@@ -54,7 +69,7 @@ jobs:
5469
return;
5570
}
5671
57-
const promise = github.pulls.list.endpoint({
72+
const promise = github.rest.pulls.list.endpoint({
5873
owner: context.repo.owner,
5974
repo: context.repo.repo,
6075
state: 'open'
@@ -71,7 +86,7 @@ jobs:
7186
}
7287
7388
// approve release PR
74-
await github.pulls.createReview({
89+
await github.rest.pulls.createReview({
7590
owner: context.repo.owner,
7691
repo: context.repo.repo,
7792
body: 'Rubber stamped release!',
@@ -80,7 +95,7 @@ jobs:
8095
});
8196
8297
// attach kokoro:force-run and automerge labels
83-
await github.issues.addLabels({
98+
await github.rest.issues.addLabels({
8499
owner: context.repo.owner,
85100
repo: context.repo.repo,
86101
issue_number: context.payload.pull_request.number,

.github/workflows/ci.yaml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# Github action job to test core java library features on
15+
# downstream client libraries before they are released.
116
on:
217
push:
318
branches:
@@ -12,8 +27,8 @@ jobs:
1227
matrix:
1328
java: [8, 11, 17]
1429
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-java@v2
30+
- uses: actions/checkout@v3
31+
- uses: actions/setup-java@v3
1732
with:
1833
distribution: zulu
1934
java-version: ${{matrix.java}}
@@ -24,8 +39,10 @@ jobs:
2439
windows:
2540
runs-on: windows-latest
2641
steps:
27-
- uses: actions/checkout@v2
28-
- uses: actions/setup-java@v2
42+
- name: Support longpaths
43+
run: git config --system core.longpaths true
44+
- uses: actions/checkout@v3
45+
- uses: actions/setup-java@v3
2946
with:
3047
distribution: zulu
3148
java-version: 8
@@ -39,8 +56,8 @@ jobs:
3956
matrix:
4057
java: [8, 11, 17]
4158
steps:
42-
- uses: actions/checkout@v2
43-
- uses: actions/setup-java@v2
59+
- uses: actions/checkout@v3
60+
- uses: actions/setup-java@v3
4461
with:
4562
distribution: zulu
4663
java-version: ${{matrix.java}}
@@ -49,8 +66,8 @@ jobs:
4966
lint:
5067
runs-on: ubuntu-latest
5168
steps:
52-
- uses: actions/checkout@v2
53-
- uses: actions/setup-java@v2
69+
- uses: actions/checkout@v3
70+
- uses: actions/setup-java@v3
5471
with:
5572
distribution: zulu
5673
java-version: 11
@@ -61,8 +78,8 @@ jobs:
6178
clirr:
6279
runs-on: ubuntu-latest
6380
steps:
64-
- uses: actions/checkout@v2
65-
- uses: actions/setup-java@v2
81+
- uses: actions/checkout@v3
82+
- uses: actions/setup-java@v3
6683
with:
6784
distribution: zulu
6885
java-version: 8

0 commit comments

Comments
 (0)