Skip to content

Commit 81602aa

Browse files
josecolellaclaude
andauthored
ci: auto-approve and merge Renovate PRs (#239)
Signed-off-by: Jose Colella <jose.colella@gusto.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2258071 commit 81602aa

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Auto-merge Renovate PRs
2+
3+
on:
4+
pull_request_target:
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
jobs:
11+
auto-merge:
12+
runs-on: ubuntu-latest
13+
if: github.actor == 'renovate[bot]'
14+
steps:
15+
- name: Approve PR
16+
run: gh pr review --approve "$PR_URL"
17+
env:
18+
PR_URL: ${{ github.event.pull_request.html_url }}
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: Enable auto-merge
22+
run: gh pr merge --auto --squash "$PR_URL"
23+
env:
24+
PR_URL: ${{ github.event.pull_request.html_url }}
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

renovate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
":automergeStableNonMajor",
66
"security:minimumReleaseAgeNpm"
77
],
8-
"semanticCommits": "enabled"
8+
"semanticCommits": "enabled",
9+
"platformAutomerge": true
910
}

0 commit comments

Comments
 (0)