Skip to content

Commit

Permalink
Label bot PRs skip-changelog (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
akihironitta authored Jan 14, 2025
1 parent 9ff3b68 commit aec43a1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' }}
steps:
- name: Label bot PRs
run: gh pr edit --add-label "ci,skip-changelog" ${{ github.event.pull_request.html_url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Auto-approve
uses: hmarr/auto-approve-action@v4

- name: Enable auto-merge
run: gh pr merge --auto --squash "$PR_URL"
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit aec43a1

Please sign in to comment.