From adfbc01152f0ff0e047c592589f72e8bb45daadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gorzeli=C5=84ski?= Date: Tue, 22 Aug 2023 10:09:43 +0200 Subject: [PATCH 1/3] Add config for the stale action. --- .github/workflows/stale.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 00000000000..090678b7e72 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,27 @@ +name: "Close stale issues and PRs" +on: + schedule: + - cron: '00 05 * * *' + +jobs: + stale: + permissions: + issues: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: gorzelinski/stale@add-reaction-updates + with: + repo-token: ${{ secrets.GH_BOT_TOKEN }} + stale-issue-label: status:stale + stale-issue-message: "There has been no activity in this issue for the last five years. Now it is marked as stale and will be closed in 30 days. We know it may be valid, so if you're interested in the solution, leave a comment or reaction under the issue." + stale-pr-message: "There has been no activity in this PR for the last five years. Now it is marked as stale and will be closed in 30 days. We know it may be valid, so if you're interested in the contribution, leave a comment or reaction under the PR." + close-issue-message: "We have closed the issue because of the lack of activity for the last five years. We know it might be valid, so you can reopen a similar issue if needed." + close-pr-message: "We have closed the PR because of the lack of activity for the last five years. We know it might be valid, so you can reopen a similar PR if needed." + days-before-stale: 1825 + days-before-close: 30 + exempt-issue-labels: support, domain:accessibility + exempt-pr-labels: support, domain:accessibility + ignore-reactions: false + operations-per-run: 60 + ascending: true \ No newline at end of file From 27c01b34c199cce843c7ceb713956bc5ed311d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gorzeli=C5=84ski?= Date: Mon, 28 Aug 2023 09:33:45 +0200 Subject: [PATCH 2/3] Reword stale messages. --- .github/workflows/stale.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 090678b7e72..93b7518d214 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -14,10 +14,11 @@ jobs: with: repo-token: ${{ secrets.GH_BOT_TOKEN }} stale-issue-label: status:stale - stale-issue-message: "There has been no activity in this issue for the last five years. Now it is marked as stale and will be closed in 30 days. We know it may be valid, so if you're interested in the solution, leave a comment or reaction under the issue." - stale-pr-message: "There has been no activity in this PR for the last five years. Now it is marked as stale and will be closed in 30 days. We know it may be valid, so if you're interested in the contribution, leave a comment or reaction under the PR." - close-issue-message: "We have closed the issue because of the lack of activity for the last five years. We know it might be valid, so you can reopen a similar issue if needed." - close-pr-message: "We have closed the PR because of the lack of activity for the last five years. We know it might be valid, so you can reopen a similar PR if needed." + close-issue-label: resolution:expired + stale-issue-message: "There has been no activity on this issue for the last five years. We have marked it as stale and will close it in 30 days. We know it may be valid, so if you're interested in the solution, leave a comment or reaction under this issue." + stale-pr-message: "There has been no activity on this PR for the last five years. We have marked it as stale and will close it in 30 days. We know it may be valid, so if you're interested in the contribution, leave a comment or reaction under this PR." + close-issue-message: "We have closed the issue due to the lack of activity for the last five years. We know it may be valid, so you can reopen a similar issue." + close-pr-message: "We have closed the PR due to the lack of activity for the last five years. We know it may be valid, so you can reopen a similar PR." days-before-stale: 1825 days-before-close: 30 exempt-issue-labels: support, domain:accessibility From 54bd4779c4b3c64b5858f198055df01b17f5878c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gorzeli=C5=84ski?= Date: Mon, 28 Aug 2023 14:45:10 +0200 Subject: [PATCH 3/3] Address the remarks regarding messages and labels. --- .github/workflows/stale.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 93b7518d214..4eb614ea0c7 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -15,14 +15,14 @@ jobs: repo-token: ${{ secrets.GH_BOT_TOKEN }} stale-issue-label: status:stale close-issue-label: resolution:expired - stale-issue-message: "There has been no activity on this issue for the last five years. We have marked it as stale and will close it in 30 days. We know it may be valid, so if you're interested in the solution, leave a comment or reaction under this issue." - stale-pr-message: "There has been no activity on this PR for the last five years. We have marked it as stale and will close it in 30 days. We know it may be valid, so if you're interested in the contribution, leave a comment or reaction under this PR." - close-issue-message: "We have closed the issue due to the lack of activity for the last five years. We know it may be valid, so you can reopen a similar issue." - close-pr-message: "We have closed the PR due to the lack of activity for the last five years. We know it may be valid, so you can reopen a similar PR." + stale-issue-message: "There has been no activity on this issue for the past five years. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue." + stale-pr-message: "There has been no activity on this PR for the past five years. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the contribution, leave a comment or reaction under this PR." + close-issue-message: "We've closed your issue due to inactivity over the last five years. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it)." + close-pr-message: "We've closed your PR due to inactivity over the last five years. While time has passed, the core of your contribution might still be relevant. If you're able, consider reopening a similar PR." days-before-stale: 1825 days-before-close: 30 - exempt-issue-labels: support, domain:accessibility - exempt-pr-labels: support, domain:accessibility + exempt-issue-labels: support,domain:accessibility + exempt-pr-labels: support,domain:accessibility ignore-reactions: false operations-per-run: 60 ascending: true \ No newline at end of file