Skip to content

Commit d2db027

Browse files
paketo-botrobdimsdale
authored andcommitted
Updating github-config
1 parent d224655 commit d2db027

2 files changed

Lines changed: 8 additions & 45 deletions

File tree

.github/workflows/approve-bot-pr.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Approve Bot PRs
1+
name: Approve Bot PRs and Enable Auto-Merge
22

33
on:
44
workflow_run:
@@ -60,3 +60,10 @@ jobs:
6060
with:
6161
token: ${{ secrets.PAKETO_BOT_REVIEWER_GITHUB_TOKEN }}
6262
number: ${{ needs.download.outputs.pr-number }}
63+
64+
- name: Enable Auto-Merge
65+
if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
66+
run: |
67+
gh pr merge ${{ needs.download.outputs.pr-number }} --auto --rebase
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}

.github/workflows/auto-merge.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)