Skip to content

Commit 53a58c2

Browse files
authored
chore: update auto-release script to fix breaking changes in v5 (#1350)
1 parent 5b77727 commit 53a58c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
}
3838
3939
// only approve PRs with pom.xml and versions.txt changes
40-
const filesPromise = github.pulls.listFiles.endpoint({
40+
const filesPromise = github.rest.pulls.listFiles.endpoint({
4141
owner: context.repo.owner,
4242
repo: context.repo.repo,
4343
pull_number: context.payload.pull_request.number,
@@ -69,7 +69,7 @@ jobs:
6969
return;
7070
}
7171
72-
const promise = github.pulls.list.endpoint({
72+
const promise = github.rest.pulls.list.endpoint({
7373
owner: context.repo.owner,
7474
repo: context.repo.repo,
7575
state: 'open'
@@ -86,7 +86,7 @@ jobs:
8686
}
8787
8888
// approve release PR
89-
await github.pulls.createReview({
89+
await github.rest.pulls.createReview({
9090
owner: context.repo.owner,
9191
repo: context.repo.repo,
9292
body: 'Rubber stamped release!',
@@ -95,7 +95,7 @@ jobs:
9595
});
9696
9797
// attach kokoro:force-run and automerge labels
98-
await github.issues.addLabels({
98+
await github.rest.issues.addLabels({
9999
owner: context.repo.owner,
100100
repo: context.repo.repo,
101101
issue_number: context.payload.pull_request.number,

0 commit comments

Comments
 (0)