Skip to content

Commit 6613770

Browse files
authored
fix: skip auto-merge for release PRs (#90)
Release PRs from patchloom-release[bot] should be approved (to satisfy branch protection) but not auto-merged. The maintainer decides when to release by manually merging the release PR. Skip the auto-merge step when the PR author is patchloom-release[bot]. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent dfb58f1 commit 6613770

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/auto-approve.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
3434

3535
- name: Enable auto-merge
36+
if: github.event.pull_request.user.login != 'patchloom-release[bot]'
3637
env:
3738
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3839
run: gh pr merge --auto --squash "${{ github.event.pull_request.number }}" --repo "${{ github.repository }}"

0 commit comments

Comments
 (0)