Skip to content

[DDO-3654]: Bump golang.org/x/oauth2 from 0.23.0 to 0.24.0 in /sherlock #339

[DDO-3654]: Bump golang.org/x/oauth2 from 0.23.0 to 0.24.0 in /sherlock

[DDO-3654]: Bump golang.org/x/oauth2 from 0.23.0 to 0.24.0 in /sherlock #339

name: Dependabot Auto-Merge
on:
pull_request:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
dependabot-automerge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Approve PR as Dependabot
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr review --approve "$PR_URL"
- name: Approve PR as Broadbot
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.BROADBOT_TOKEN }}
run: |
gh pr review --approve "$PR_URL"
- name: Enable auto-merge for PR as Broadbot
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.BROADBOT_TOKEN }}
run: |
gh pr merge --auto --squash "$PR_URL"