From 4efa46c556384b9f22dc0d3b0eb32d686996bc86 Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Mon, 8 Apr 2024 13:05:54 +0100 Subject: [PATCH] ci: Remove auto-approve PRs now it is disabled at org level --- .github/workflows/devbox-update.yaml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/devbox-update.yaml b/.github/workflows/devbox-update.yaml index f0eab1e1..326af2b3 100644 --- a/.github/workflows/devbox-update.yaml +++ b/.github/workflows/devbox-update.yaml @@ -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