From f55170ae512dea5601aaa64483e5d6b78b1d7b7a Mon Sep 17 00:00:00 2001 From: Satadru Pramanik Date: Thu, 14 Nov 2024 12:08:12 -0500 Subject: [PATCH] Add stale PR/Issue closing GitHub Action. Signed-off-by: Satadru Pramanik --- .github/workflows/Repo-Stale.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/Repo-Stale.yml diff --git a/.github/workflows/Repo-Stale.yml b/.github/workflows/Repo-Stale.yml new file mode 100644 index 000000000..fe6c4ca45 --- /dev/null +++ b/.github/workflows/Repo-Stale.yml @@ -0,0 +1,29 @@ +--- +name: Repo / Reply stale issue +on: + schedule: + - cron: 30 3 * * * + workflow_dispatch: null +permissions: + issues: write + pull-requests: write +jobs: + triage: + name: Triage + runs-on: ubuntu-latest + if: ${{ contains(github.repository_owner, 'chromebrew') }} + steps: + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 + with: + days-before-stale: 120 + days-before-pr-stale: -1 + days-before-close: 21 + days-before-pr-close: -1 + exempt-issue-labels: enhancement,confirmed + stale-issue-label: stale + stale-issue-message: >- + This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. + + If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release with `crew update && yes | crew upgrade`, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. + + This bot exists to prevent issues from becoming stale and forgotten. Chromebrew is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly.