Skip to content

Commit 716a85b

Browse files
authored
ci: Remove auto-approve PR steps (#462)
1 parent 9c9da7c commit 716a85b

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

.github/workflows/dependabot-automation.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,6 @@ defaults:
1717
shell: bash
1818

1919
jobs:
20-
auto-approve:
21-
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
22-
runs-on: ubuntu-22.04
23-
steps:
24-
- name: Dependabot metadata
25-
id: dependabot-metadata
26-
uses: dependabot/fetch-metadata@v1
27-
- uses: actions/checkout@v4
28-
- name: Approve a PR if not already approved
29-
run: |
30-
gh pr checkout "$PR_URL" # sets the upstream metadata for `gh pr status`
31-
if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ]; then
32-
gh pr review --approve "$PR_URL"
33-
else
34-
echo "PR already approved, skipping additional approvals to minimize emails/notification noise."
35-
fi
36-
env:
37-
PR_URL: ${{github.event.pull_request.html_url}}
38-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
39-
4020
enable-automerge:
4121
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]'}}
4222
runs-on: ubuntu-22.04

.github/workflows/devbox-update.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ jobs:
7373

7474
- name: Create PR using app token
7575
if: steps.devbox-versions-changed.outputs.number_changed > 0
76-
id: create-pr
7776
env:
7877
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
7978
run: |
@@ -82,15 +81,3 @@ jobs:
8281
--body "This PR was automatically created by the scheduled devbox update workflow." \
8382
--label ignore-for-release)"
8483
gh pr merge --auto --squash "${pr_url}"
85-
echo "pr_url=${pr_url}" >>"${GITHUB_OUTPUT}"
86-
87-
- name: Approve PR using workflow token
88-
if: steps.devbox-versions-changed.outputs.number_changed > 0
89-
env:
90-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91-
run: |
92-
if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ]; then
93-
gh pr review --approve "${{ steps.create-pr.outputs.pr_url }}"
94-
else
95-
echo "PR already approved, skipping additional approvals to minimize emails/notification noise."
96-
fi

0 commit comments

Comments
 (0)