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 dc6feb8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ updates:
groups:
pip:
applies-to: version-updates
patterns:
- "*"
dependency-type: development
# use increase otherwise widen is chosen
versioning-strategy: increase
- package-ecosystem: "npm"
Expand Down
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]' && github.repository == 'tekumara/fakesnow'
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 dc6feb8

Please sign in to comment.