From fb48bfcbe672f3043d75c268a5115ffc9a8a3356 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 15 Feb 2024 19:22:25 +0100 Subject: [PATCH] Revert "devops: auto close questions (#29513)" This reverts commit 09d0a099a2dd0ff060267ac2d68de03c62fc46b4. --- .github/workflows/close_issue_questions.yml | 26 --------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/close_issue_questions.yml diff --git a/.github/workflows/close_issue_questions.yml b/.github/workflows/close_issue_questions.yml deleted file mode 100644 index 9b5aaebc47..0000000000 --- a/.github/workflows/close_issue_questions.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Close Issue on Specific Text - -on: - issues: - types: [opened] - -permissions: - issues: write - -jobs: - close_issue_if_forbidden_text_found: - runs-on: ubuntu-latest - steps: - - name: Close issue with specific text - uses: actions/github-script@v7 - with: - script: | - const issueBody = context.payload.issue.body; - if (!issueBody.includes('Please do not submit this issue.') || !issueBody.includes('This issue tracker is reserved for bug reports and feature requests.')) - return; - await github.rest.issues.update({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.issue.number, - state: 'closed' - });