Skip to content

Commit

Permalink
Mark pull request and issues as stale after 90d of inactivity
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Nath <[email protected]>
  • Loading branch information
electron0zero committed Dec 11, 2023
1 parent 7f045ba commit 8209849
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/stale.yml
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

0 comments on commit 8209849

Please sign in to comment.