From 8de379b1d5d639666e2e2eff1992f386f07d8602 Mon Sep 17 00:00:00 2001 From: nonk123 Date: Thu, 27 Jul 2023 14:58:48 +0300 Subject: Add a GitHub workflow to close inactive issues automatically --- .github/workflows/close-inactive-issues.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/close-inactive-issues.yml diff --git a/.github/workflows/close-inactive-issues.yml b/.github/workflows/close-inactive-issues.yml new file mode 100644 index 00000000..ee36a902 --- /dev/null +++ b/.github/workflows/close-inactive-issues.yml @@ -0,0 +1,31 @@ +name: Close inactive issues + +on: + schedule: + - cron: "5 0 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 7 + days-before-issue-close: 7 + + days-before-pr-stale: 7 + days-before-pr-close: 7 + + stale-issue-label: "stale" + stale-pr-label: "stale" + + stale-issue-message: "Bumping this isuse because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again." + close-issue-message: "Closing due to inactivity." + + stale-pr-message: "Bumping this pull request because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again." + close-pr-message: "Closing due to inactivity." + + repo-token: ${{ secrets.GITHUB_TOKEN }} -- cgit v1.2.3 From a1e8ce86641d39b059f6c40720aedafb25b466eb Mon Sep 17 00:00:00 2001 From: nonk123 Date: Tue, 1 Aug 2023 21:40:13 +0300 Subject: Fix the "isuse" typo --- .github/workflows/close-inactive-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/close-inactive-issues.yml b/.github/workflows/close-inactive-issues.yml index ee36a902..d81b727a 100644 --- a/.github/workflows/close-inactive-issues.yml +++ b/.github/workflows/close-inactive-issues.yml @@ -22,7 +22,7 @@ jobs: stale-issue-label: "stale" stale-pr-label: "stale" - stale-issue-message: "Bumping this isuse because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again." + stale-issue-message: "Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again." close-issue-message: "Closing due to inactivity." stale-pr-message: "Bumping this pull request because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again." -- cgit v1.2.3