Skip to content

Commit

Permalink
Add Close Stale Issues Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed Aug 29, 2022
1 parent a01a916 commit 042541d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Close Stale Issues
# Warns and then closes issues and PRs that have had no activity for a specified amount of time.
# https://github.com/actions/stale

name: Close Stale Issues
on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@9c1b1c6e115ca2af09755448e0dbba24e5061cc8 # pin@v5
with:
# Comment on the staled issues
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days. if no further activity occurs."

# Idle number of days before marking issues stale, set `-1` to disable
days-before-issue-stale: 180

# Idle number of days before marking issues stale, set `-1` to disable
days-before-pr-stale: -1

# Idle number of days before closing stale issues/PRs
days-before-close: 14

# Label to apply on staled issues
stale-issue-label: "type: stale 💤"

# Labels on issues exempted from stale
exempt-issue-labels: "critical: roadblock 🚧,type: regression 🚨"

0 comments on commit 042541d

Please sign in to comment.