Skip to content

Commit

Permalink
chore: add workflow to auto merge dependabot angular PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
KimFFVII authored Sep 4, 2024
1 parent 62fb1bf commit f91fa98
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/auto-merge-dependabot-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Auto merge dependabot Angular PRs
on:
pull_request_target:
types: [opened]
jobs:
auto-merge:
if: github.event.pull_request.user.login == 'dependabot' && startsWith(github.head_ref, 'dependabot/npm_and_yarn/angular-')
runs-on: ubuntu-latest
steps:
- name: Enable auto-merge for Dependabot PRs
if: ${{ contains(github.event.pull_request.title, 'bump')}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit f91fa98

Please sign in to comment.