From 53a58c23eb4decb3a17fab07388d42799e158b5f Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 7 Feb 2022 18:34:07 -0500 Subject: [PATCH] chore: update auto-release script to fix breaking changes in v5 (#1350) --- .../java_library/.github/workflows/auto-release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml b/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml index 12bc77919..4e9799f3f 100644 --- a/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml +++ b/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml @@ -37,7 +37,7 @@ jobs: } // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.pulls.listFiles.endpoint({ + const filesPromise = github.rest.pulls.listFiles.endpoint({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number, @@ -69,7 +69,7 @@ jobs: return; } - const promise = github.pulls.list.endpoint({ + const promise = github.rest.pulls.list.endpoint({ owner: context.repo.owner, repo: context.repo.repo, state: 'open' @@ -86,7 +86,7 @@ jobs: } // approve release PR - await github.pulls.createReview({ + await github.rest.pulls.createReview({ owner: context.repo.owner, repo: context.repo.repo, body: 'Rubber stamped release!', @@ -95,7 +95,7 @@ jobs: }); // attach kokoro:force-run and automerge labels - await github.issues.addLabels({ + await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number,