From 6e5cb77e7d86319b3fbe9e03635145fa662fe84a Mon Sep 17 00:00:00 2001 From: virtualdj Date: Sat, 4 Jan 2025 10:00:35 +0100 Subject: [PATCH] Prevent bot to stale already acknowledged issues/FR At the moment the gitactions-bot tries to set the `stale` label even on issues/feature requests already marked as acknowledged or even on milestones (see #627 for example). This modification should tell the bot to avoid those types of issues. --- .github/workflows/close_inactive_issues.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/close_inactive_issues.yml b/.github/workflows/close_inactive_issues.yml index 9eb2ead..c8dc3ed 100644 --- a/.github/workflows/close_inactive_issues.yml +++ b/.github/workflows/close_inactive_issues.yml @@ -16,8 +16,10 @@ jobs: days-before-issue-stale: 30 days-before-issue-close: 14 stale-issue-label: "stale" + exempt-all-milestones: true + exempt-issue-labels: 'acknowledged' stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." days-before-pr-stale: -1 days-before-pr-close: -1 - repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + repo-token: ${{ secrets.GITHUB_TOKEN }}