Skip to content

Commit

Permalink
Add exempt label option in GH action stale job (#1328)
Browse files Browse the repository at this point in the history
I’ve noticed that the "dosubot" and "stale" jobs are creating
unnecessary noise by closing issues and PRs that were not intended to be
closed. In this PR, I am introducing the exempt-issue-labels and
exempt-pr-labels options for the stale job. These options will ensure
that issues and PRs labeled with do-not-stale are excluded from being
closed by the "dosubot" and "stale" jobs.
  • Loading branch information
pankajastro authored Nov 15, 2024
1 parent 7d487a0 commit a54eb5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
days-before-pr-stale: 30
days-before-pr-close: 10
stale-pr-label: "stale"
exempt-issue-labels: "do-not-stale"
exempt-pr-labels: "do-not-stale"
stale-pr-message: "This PR is stale because it has been open for 30 days with no activity."
close-pr-message: "This PR was closed because it has been inactive for 10 days since being marked as stale."
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a54eb5a

Please sign in to comment.