From ed43817da79b52df66fc089ad337813b12e2c12c Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Mon, 12 Dec 2022 13:45:46 -0800 Subject: [PATCH] Revert "Auto closing issues that needs logs after 7 days of inactivity. (#21390)" (#21403) This reverts commit 30f4a3554a53d07064ef92a229e72809b1668aed. --- .github/workflows/cleanup-stale-issues.yml | 32 ---------------------- .github/workflows/on-issue-comment.yml | 26 ------------------ 2 files changed, 58 deletions(-) delete mode 100644 .github/workflows/cleanup-stale-issues.yml delete mode 100644 .github/workflows/on-issue-comment.yml diff --git a/.github/workflows/cleanup-stale-issues.yml b/.github/workflows/cleanup-stale-issues.yml deleted file mode 100644 index edd65180f7..0000000000 --- a/.github/workflows/cleanup-stale-issues.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Close old issues that need reply - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Close old issues labeled 'Need logs' that need reply. - uses: dwieeb/needs-reply@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-label: Needs Logs - days-before-close: 7 - close-comment: "This issue hasn't had any recent activity and we are marking it as closed. If you are still experiencing this issue, please reopen this issue" - - name: Close old issues labeled 'Need Logs - Azure ' that need reply. - uses: dwieeb/needs-reply@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-label: Needs Logs - Azure - days-before-close: 7 - close-comment: "This issue hasn't had any recent activity and we are marking it as closed. If you are still experiencing this issue, please reopen this issue" - - name: Close old issues labeled 'Need More Info' that need reply. - uses: dwieeb/needs-reply@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-label: Needs More Info - days-before-close: 7 - close-comment: "This issue hasn't had any recent activity and we are marking it as closed. If you are still experiencing this issue, please reopen this issue" - diff --git a/.github/workflows/on-issue-comment.yml b/.github/workflows/on-issue-comment.yml deleted file mode 100644 index 0a8caf5ad6..0000000000 --- a/.github/workflows/on-issue-comment.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: On issue comment -on: - issue_comment: - types: - - created -jobs: - build: - runs-on: ubuntu-latest - if: | - github.event.comment.author_association != 'OWNER' && - github.event.comment.author_association != 'COLLABORATOR' - steps: - - name: Remove needs-reply label - uses: octokit/request-action@v2.x - continue-on-error: true - with: - route: DELETE /repos/:repository/issues/:issue/labels/:label - repository: ${{ github.repository }} - issue: ${{ github.event.issue.number }} - labels: | - Needs Logs - Needs Logs - Azure - Needs More Info - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -