Skip to content

Commit

Permalink
Merge pull request #104 from PxTools/auto-merge-dependabot-patches
Browse files Browse the repository at this point in the history
Auto-merge Dependabot patches
  • Loading branch information
runejo authored Nov 6, 2024
2 parents 742582f + 37fcfe2 commit 599e6f6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@ updates:
directory: "/"
schedule:
interval: "daily"
reviewers:
- "JohannesFinsveen"
- "likp"
- "runejo"
groups:
small-change:
patterns:
- "*"
minor-version-updates:
applies-to: version-updates
update-types:
- "minor"
- "patch"
- "minor"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr review --approve "$PR_URL"
- name: Merge
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr merge --auto --squash "$PR_URL"
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @pxtools/devs-scb @pxtools/devs-ssb

0 comments on commit 599e6f6

Please sign in to comment.