From 0f1cedcc9646cbbec96a79035835e24cd4661be1 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Thu, 30 Mar 2023 11:20:41 +0900 Subject: [PATCH] GHA: Don't close untriaged or assigned issues automatically In addition, shorten `days-before-stale` for triaged issues. Signed-off-by: Takuro Ashie --- .github/ISSUE_TEMPLATE/bug_report.yaml | 1 + .github/ISSUE_TEMPLATE/feature_request.yaml | 1 + .github/workflows/stale-actions.yml | 10 ++++++---- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 4262292d1e..1e92168c2f 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -1,5 +1,6 @@ name: Bug Report description: Create a report with a procedure for reproducing the bug +labels: "waiting-for-triage" body: - type: markdown attributes: diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index 005f0bf622..e7f6da8efc 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -1,5 +1,6 @@ name: Feature request description: Suggest an idea for this project +labels: "waiting-for-triage" body: - type: markdown attributes: diff --git a/.github/workflows/stale-actions.yml b/.github/workflows/stale-actions.yml index 3378987cbf..f3f84c0ad8 100644 --- a/.github/workflows/stale-actions.yml +++ b/.github/workflows/stale-actions.yml @@ -10,13 +10,15 @@ jobs: - uses: actions/stale@v8 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 90 + days-before-stale: 30 days-before-close: 30 - stale-issue-message: "This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days" + stale-issue-message: "This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 30 days" stale-pr-message: "This PR has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this PR will be closed in 30 days" close-issue-message: "This issue was automatically closed because of stale in 30 days" close-pr-message: "This PR was automatically closed because of stale in 30 days" stale-pr-label: "stale" stale-issue-label: "stale" - exempt-issue-labels: "bug,enhancement,feature request,pending,work_in_progress,v1,v2" - exempt-pr-labels: "bug,enhancement,feature request,pending,work_in_progress,v1,v2" + exempt-issue-labels: "waiting-for-triage,bug,enhancement,feature request,pending,work_in_progress,v1,v2" + exempt-pr-labels: "waiting-for-triage,bug,enhancement,feature request,pending,work_in_progress,v1,v2" + exempt-all-assignees: true + exempt-all-milestones: true