-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark pull request and issues as stale after 90d of inactivity
Signed-off-by: Suraj Nath <[email protected]>
- Loading branch information
1 parent
7f045ba
commit 8209849
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Stale check | ||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: '0 0 * * *' | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
jobs: | ||
stale: | ||
# only run in prometheus/blackbox_exporter, and don't run this workflow in forks. | ||
if: github.repository == 'prometheus/blackbox_exporter' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
close-issue-reason: not_planned | ||
operations-per-run: 100 | ||
days-before-stale: 90 | ||
days-before-close: 30 | ||
stale-issue-message: > | ||
This issue has been automatically marked as stale because it has | ||
not had any activity in the past 90 days. | ||
The next time this stale check runs, the stale label will be | ||
removed if there is new activity. The issue will be closed after 30 | ||
days if there is no new activity. | ||
Please apply keepalive label to exempt this Issue. | ||
stale-pr-message: > | ||
This PR has been automatically marked as stale because it has not | ||
had any activity in the past 90 days. | ||
The next time this stale check runs, the stale label will be | ||
removed if there is new activity. This pull request will be closed in 30 | ||
days if there is no new activity. | ||
Please apply keepalive label to exempt this Pull Request. | ||
stale-issue-label: stale | ||
stale-pr-label: stale | ||
exempt-issue-labels: keepalive,dependencies,bug | ||
exempt-pr-labels: keepalive,dependencies,bug |