summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorseth <[email protected]>2023-07-03 19:05:28 -0400
committerseth <[email protected]>2023-07-03 19:05:28 -0400
commit64c80d89f17a0d0a45e2cdb9bfda98f95e2597c0 (patch)
tree9e897187f9f6166a250ba95cce16170fb0e55696 /.github
parent8363f5b0703d824b3c58cf86c5cf3a6b9f162ae7 (diff)
ci: auto merge dependabot prs
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/autobot.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/autobot.yaml b/.github/workflows/autobot.yaml
new file mode 100644
index 0000000..e92e08d
--- /dev/null
+++ b/.github/workflows/autobot.yaml
@@ -0,0 +1,24 @@
+name: auto-merge dependabot
+
+on: pull_request
+
+permissions:
+ contents: write
+ pull-requests: write
+
+jobs:
+ automerge:
+ runs-on: ubuntu-latest
+ if: github.actor == 'dependabot[bot]'
+ steps:
+ - uses: dependabot/fetch-metadata@v1
+ id: metadata
+ with:
+ github-token: ${{ github.token }}
+
+ - name: enable auto-merge
+ if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
+ run: gh pr merge --auto --rebase "$PR"
+ env:
+ PR_URL: ${{ github.event.pull_request.html_url }}
+ GITHUB_TOKEN: ${{ github.token }}