From e8bb2105a6dedaaf423efc1d02b4666cbc8ca43d Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Sun, 4 Feb 2024 20:48:55 -0500 Subject: [PATCH] chore: add stale workflow --- .github/workflows/stale.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..20472ce --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,44 @@ +name: 'Close stale issues and PRs' + +on: + workflow_dispatch: + schedule: + - cron: '30 1 * * *' + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + days-before-issue-stale: 30 + days-before-issue-close: 15 + days-before-pr-stale: 60 + days-before-pr-close: 60 + + stale-issue-label: 'stale:discard' + exempt-issue-labels: 'stale:keep' + stale-issue-message: > + This issue has been automatically marked as "stale:discard". **If this issue still relevant, please leave + any comment** (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to + prioritize it yet. + If you have any new additional information, please include it with your comment. + close-issue-message: > + Closing this issue after a prolonged period of inactivity. If this issue is still relevant, feel free to + re-open the issue. Thank you! + + stale-pr-label: 'stale:discard' + exempt-pr-labels: 'stale:keep' + stale-pr-message: > + This pull request has been automatically marked as "stale:discard". **If this pull request is still + relevant, please leave any comment** (for example, "bump"), and we'll keep it open. We are sorry that we + haven't been able to prioritize reviewing it yet. + Your contribution is very much appreciated!. + close-pr-message: > + Closing this pull request after a prolonged period of inactivity. If this issue is still relevant, please + ask for this pull request to be reopened. Thank you!