Skip to content

Commit

Permalink
Remove merge when passing label in favor of enabling auto-merge dir…
Browse files Browse the repository at this point in the history
…ectly on Dependabot PRs. (#332)
  • Loading branch information
ChrisCarini committed Jul 4, 2024
1 parent c89365e commit 7ec694a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ updates:
directory: "/"
schedule:
interval: "daily"
labels:
- "merge when passing" # This is a label that [Repo Ranger](https://github.com/apps/repo-ranger) will pickup and auto-merge when all GH checks pass.
reviewers:
- ChrisCarini

Expand All @@ -18,7 +16,5 @@ updates:
directory: "/"
schedule:
interval: "daily"
labels:
- "merge when passing" # This is a label that [Repo Ranger](https://github.com/apps/repo-ranger) will pickup and auto-merge when all GH checks pass.
reviewers:
- ChrisCarini
22 changes: 22 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Enable auto-merge for Dependabot PRs

on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Enable auto-merge for Dependabot PRs
run: |
gh pr merge \
--auto \
--merge \
"$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 7ec694a

Please sign in to comment.