We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d303a62 commit b89034cCopy full SHA for b89034c
.github/workflows/dependabot-weekly-automerge.yml
@@ -0,0 +1,24 @@
1
+name: Weekly auto-merge Dependabot PRs
2
+on:
3
+ schedule:
4
+ - cron: '0 6 * * 1'
5
+ workflow_dispatch:
6
+permissions:
7
+ contents: write
8
+ pull-requests: write
9
+jobs:
10
+ automerge:
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14
+ steps:
15
+ - uses: actions/checkout@v5
16
+ - name: Merge clean Dependabot PRs
17
+ run: |
18
+ set -euo pipefail
19
+ prs=$(gh pr list --state open --search 'author:app/dependabot' --json number,mergeStateStatus -L 200 \
20
+ | jq -r '.[] | select(.mergeStateStatus=="CLEAN") | .number')
21
+ for n in $prs; do
22
+ echo "Enabling auto-merge for #$n"
23
+ gh pr merge "$n" --squash --auto --delete-branch || true
24
+ done
0 commit comments