Skip to content

Commit

Permalink
ci: Remove auto-approve PRs now it is disabled at org level
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Apr 8, 2024
1 parent 2692e42 commit 4efa46c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/devbox-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,3 @@ jobs:
--body "This PR was automatically created by the scheduled devbox update workflow.")"
gh pr merge --auto --squash "${pr_url}"
echo "pr_url=${pr_url}" >>"${GITHUB_OUTPUT}"
- name: Approve PR using workflow token
if: steps.devbox-versions-changed.outputs.number_changed > 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ]; then
gh pr review --approve "${{ steps.create-pr.outputs.pr_url }}"
else
echo "PR already approved, skipping additional approvals to minimize emails/notification noise."
fi

0 comments on commit 4efa46c

Please sign in to comment.