From af2779b784f6dfaf32d279d8f30f7ac66842be76 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 23 Oct 2026 02:59:46 +0900 Subject: [PATCH] Remove auto-approve workflow The autoapprove job can never run via workflow_dispatch because its 'if' condition depends on issue_comment event context (github.event.comment, github.event.issue.number), which does not exist for workflow_dispatch. With the issue_comment trigger removed, the workflow is dead code, so delete it outright. This also resolves the zizmor dangerous-triggers finding raised by the zizmor 1.31.1 update in pre-commit.ci's autoupdate PR. --- .github/workflows/auto-approve.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/workflows/auto-approve.yml diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml deleted file mode 100644 index 695e5f0168..0000000000 --- a/.github/workflows/auto-approve.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Approve PRs -on: - workflow_dispatch: - issue_comment: - types: [created] - -jobs: - autoapprove: - # This job only runs for pull request comments by approved users on creation - name: PR comment - if: github.event.issue.pull_request && - contains(github.event.comment.body, '@pyvista-bot LGTM') && ( - github.event.comment.user.login == 'banesullivan' || - github.event.comment.user.login == 'tkoyama010' || - github.event.comment.user.login == 'akaszynski' - ) - permissions: - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 - with: - review-message: ":white_check_mark: Approving this PR because [${{ github.event.comment.user.login }}](https://github.com/${{ github.event.comment.user.login }}) said so in [here](${{ github.event.comment.html_url }}) :shipit:" - pull-request-number: ${{ github.event.issue.number }} - github-token: ${{ secrets.GITHUB_TOKEN }}