Skip to content

Commit

Permalink
chore: update auto-release script to fix breaking changes in v5 (goog…
Browse files Browse the repository at this point in the history
…leapis#1350) (googleapis#712)

Source-Link: googleapis/synthtool@53a58c2
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b
  • Loading branch information
gcf-owl-bot[bot] authored Feb 8, 2022
1 parent b92c399 commit 960412f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion java-resourcemanager/.github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6
digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b
8 changes: 4 additions & 4 deletions java-resourcemanager/.github/workflows/auto-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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'
Expand All @@ -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!',
Expand All @@ -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,
Expand Down

0 comments on commit 960412f

Please sign in to comment.