Skip to content

Commit 57742a8

Browse files
committed
2 parents 10c2192 + a294ff5 commit 57742a8

File tree

33 files changed

+490
-96
lines changed

33 files changed

+490
-96
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 14 additions & 1 deletion
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:
215
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
3-
digest: sha256:491a007c6bd6e77f9e9b1bebcd6cdf08a4a4ef2c228c123d9696845204cb685d
16+
digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b

.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/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@v5
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@v5
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: 15 additions & 0 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:

.github/workflows/downstream.yaml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
on:
2+
pull_request:
3+
types: [ labeled ]
4+
branches:
5+
- main
6+
name: downstream
7+
jobs:
8+
dependencies:
9+
if: ${{ github.event.label.name == 'downstream-check:run' }}
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
java: [8]
15+
repo:
16+
# This list needs to be updated manually until an automated solution is in place.
17+
- accessapproval
18+
- accesscontextmanager
19+
- aiplatform
20+
- analytics-admin
21+
- analytics-data
22+
- api-gateway
23+
- apigee-connect
24+
- appengine-admin
25+
- area120-tables
26+
- artifact-registry
27+
- asset
28+
- assured-workloads
29+
- automl
30+
- bigquery
31+
- bigqueryconnection
32+
- bigquerydatatransfer
33+
- bigquerymigration
34+
- bigqueryreservation
35+
- bigtable
36+
- billing
37+
- billingbudgets
38+
- binary-authorization
39+
- channel
40+
- cloudbuild
41+
- compute
42+
- contact-center-insights
43+
- container
44+
- containeranalysis
45+
- data-fusion
46+
- datacatalog
47+
- dataflow
48+
- datalabeling
49+
- dataproc
50+
- dataproc-metastore
51+
- datastore
52+
- datastream
53+
- debugger-client
54+
- deploy
55+
- dialogflow
56+
- dialogflow-cx
57+
- dlp
58+
- dms
59+
- dns
60+
- document-ai
61+
- domains
62+
- errorreporting
63+
- essential-contacts
64+
- eventarc
65+
- filestore
66+
- firestore
67+
- functions
68+
- game-servers
69+
- gke-connect-gateway
70+
- gkehub
71+
- gsuite-addons
72+
- iam-admin
73+
- iamcredentials
74+
- iot
75+
- kms
76+
- language
77+
- life-sciences
78+
- logging
79+
- logging-logback
80+
- managed-identities
81+
- mediatranslation
82+
- memcache
83+
- monitoring
84+
- monitoring-dashboards
85+
- network-management
86+
- network-security
87+
- networkconnectivity
88+
- notebooks
89+
- orchestration-airflow
90+
- orgpolicy
91+
- os-config
92+
- os-login
93+
- phishingprotection
94+
- policy-troubleshooter
95+
- private-catalog
96+
- profiler
97+
- pubsublite
98+
- recaptchaenterprise
99+
- recommendations-ai
100+
- recommender
101+
- redis
102+
- resource-settings
103+
- resourcemanager
104+
- retail
105+
- scheduler
106+
- secretmanager
107+
- security-private-ca
108+
- securitycenter
109+
- securitycenter-settings
110+
- service-control
111+
- service-management
112+
- service-usage
113+
- servicedirectory
114+
- shell
115+
- spanner
116+
- spanner-jdbc
117+
- speech
118+
- storage
119+
- storage-nio
120+
- storage-transfer
121+
- talent
122+
- tasks
123+
- texttospeech
124+
- tpu
125+
- trace
126+
- translate
127+
- video-intelligence
128+
- video-transcoder
129+
- vision
130+
- vpcaccess
131+
- webrisk
132+
- websecurityscanner
133+
- workflow-executions
134+
- workflows
135+
steps:
136+
- uses: actions/checkout@v2
137+
- uses: actions/setup-java@v1
138+
with:
139+
java-version: ${{matrix.java}}
140+
- run: java -version
141+
- run: sudo apt-get install libxml2-utils
142+
- run: .kokoro/downstream-client-library-check.sh google-http-client-bom ${{matrix.repo}}

.kokoro/build.bat

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
:: See documentation in type-shell-output.bat
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
# Github action job to test core java library features on
16+
# downstream client libraries before they are released.
217

318
"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh

0 commit comments

Comments
 (0)