From 30834eb25075d5081f9b553bb1c730909436017e Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Mon, 15 Nov 2021 21:00:25 +0100 Subject: [PATCH] Revise workflow for stalled objects (#2301) --- ...close_stale_issues.yml => handle_stalled.yml} | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) rename .github/workflows/{close_stale_issues.yml => handle_stalled.yml} (57%) diff --git a/.github/workflows/close_stale_issues.yml b/.github/workflows/handle_stalled.yml similarity index 57% rename from .github/workflows/close_stale_issues.yml rename to .github/workflows/handle_stalled.yml index e007de6c..3b5bb9ba 100644 --- a/.github/workflows/close_stale_issues.yml +++ b/.github/workflows/handle_stalled.yml @@ -1,4 +1,4 @@ -name: "Close Stale Issues" +name: "Handled Stalled Issues & PRs" on: schedule: @@ -12,13 +12,23 @@ jobs: uses: actions/stale@v4 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - exempt-issue-labels: "issue/not-stale" days-before-stale: 20 days-before-close: 10 + + exempt-issue-labels: "bot/ignore" stale-issue-label: "meta/stale" - close-issue-label: "meta/closed due to age or inactivity" stale-issue-message: > This issue has become stale because it has been open for 20 days without activity. Remove the label and comment or this issue will be closed in 10 days. + close-issue-label: "meta/closed due to age or inactivity" close-issue-message: > This issue was closed due to inactivity. + + exempt-pr-labels: "bot/ignore" + stale-pr-label: "meta/stale" + stale-pr-message: > + This PR has become stale because it has been open for 20 days without + activity. Remove the label and comment or this PR will be closed in 10 days. + close-pr-label: "meta/closed due to age or inactivity" + closed-pr-message: > + This PR was closed due to inactivity.