Skip to content

Commit

Permalink
ci: add Dependabot Auto-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tekumara committed Nov 28, 2024
1 parent ca14782 commit c68f641
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Dependabot Auto-merge
on:
pull_request:
types: [opened]

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Enable auto-merge for Dependabot PRs
# don't include verbose dependabot PR description as body when merging
run: gh pr merge --auto --squash "$PR_URL" --body ""
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit c68f641

Please sign in to comment.