From 3d0e9990ced14a14c2298bddbfc38c51da610605 Mon Sep 17 00:00:00 2001 From: Lance Ball Date: Wed, 1 Jul 2020 14:24:04 -0400 Subject: [PATCH 1/3] chore(actions): don't auto-close stale issues and pull requests Open issues and pull requests should be closed by a human who has considered the issue/pr and made a choice based on the content of the issue/pr and the state of the repository. What this means in practice is that some issues will stay open for a long time, even if they are stale. They may be open because it really is something that will be considered for future work. Periodic issue triage should be done by the maintainers, and if an issue _should_ be closed - for example, the issue is no longer relevant - then a maintainer can close it. Signed-off-by: Lance Ball --- .github/workflows/stale.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 0e787c11..3c476752 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,21 +1,19 @@ -name: Mark stale issues and pull requests +name: Issue Triage on: schedule: - cron: "0 0 * * *" jobs: - stale: - + triage_issues: runs-on: ubuntu-latest - steps: - uses: actions/stale@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days' + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity.' days-before-stale: 30 - days-before-close: 5 - stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days' + days-before-close: 0 + stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity.' stale-issue-label: 'no-issue-activity' stale-pr-label: 'no-pr-activity' From aba52083d6062e1aba49583d0423ebf4aa872a6f Mon Sep 17 00:00:00 2001 From: Lance Ball Date: Wed, 1 Jul 2020 14:37:29 -0400 Subject: [PATCH 2/3] fixup: nest labels under status/ Signed-off-by: Lance Ball --- .github/workflows/stale.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 3c476752..a0d8c0e6 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -15,5 +15,5 @@ jobs: days-before-stale: 30 days-before-close: 0 stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity.' - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity' + stale-issue-label: 'status/no-issue-activity' + stale-pr-label: 'status/no-pr-activity' From a207aed09bededc5481e44d6a5b90f9a1c098d23 Mon Sep 17 00:00:00 2001 From: Lance Ball Date: Thu, 2 Jul 2020 14:39:53 -0400 Subject: [PATCH 3/3] fixup: use -1 instead of 0 Signed-off-by: Lance Ball --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a0d8c0e6..ab445c0c 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -13,7 +13,7 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'This issue is stale because it has been open 30 days with no activity.' days-before-stale: 30 - days-before-close: 0 + days-before-close: -1 stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity.' stale-issue-label: 'status/no-issue-activity' stale-pr-label: 'status/no-pr-activity'