From b8789909794ccfebcaa40e44cc541ef4037622cb Mon Sep 17 00:00:00 2001 From: Stanislas Date: Fri, 4 Oct 2024 10:08:00 +0200 Subject: [PATCH] remove old close issue config --- .github/workflows/autoclose-issues.yml | 34 -------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .github/workflows/autoclose-issues.yml diff --git a/.github/workflows/autoclose-issues.yml b/.github/workflows/autoclose-issues.yml deleted file mode 100644 index f756c1e..0000000 --- a/.github/workflows/autoclose-issues.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: "Close issues" - -on: - issues: - types: ["opened"] - -jobs: - close-issue: - permissions: - issues: "write" - name: "Close issue" - runs-on: "ubuntu-latest" - steps: - - uses: "actions/github-script@v7" - with: - script: | - const issues_url = context.serverUrl + '/' + context.repo.owner + '/' + context.repo.repo + '/issues/new/choose'; - await github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `Issues opened on this repository are not processed. Please follow links proposed in ${issues_url}.` - }); - await github.rest.issues.lock({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - }); - await github.rest.issues.update({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - state: "closed", - });