Skip to content

Commit ff3e66a

Browse files
adthomCopilot
andcommitted
Remove auto-approve from dependabot-auto-merge workflow
Drop the gh pr review --approve step and only enable auto-merge, requiring a human approval before the PR merges. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f14438d commit ff3e66a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/dependabot-auto-merge.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ jobs:
2020
with:
2121
github-token: "${{ secrets.GITHUB_TOKEN }}"
2222

23-
- name: Approve and auto-merge patch/minor updates
23+
- name: Enable auto-merge for patch/minor updates
2424
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
25-
run: |
26-
gh pr review --approve "$PR_URL"
27-
gh pr merge --auto --squash "$PR_URL"
25+
run: gh pr merge --auto --squash "$PR_URL"
2826
env:
2927
PR_URL: ${{ github.event.pull_request.html_url }}
3028
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)