Skip to content

Commit

Permalink
github stale action
Browse files Browse the repository at this point in the history
Signed-off-by: Guy Margalit <guymguym@gmail.com>
  • Loading branch information
guymguym committed Apr 21, 2024
1 parent d2f2b7c commit ea15bfa
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '0 11 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
days-before-stale: 60
days-before-pr-stale: 60
days-before-issue-stale: 60
stale-pr-message: 'This PR had no activity for too long - it will now be labeled stale. Update it to prevent it from getting closed.'
stale-issue-message: 'This issue had no activity for too long - it will now be labeled stale. Update it to prevent it from getting closed.'

days-before-close: 30
days-before-pr-close: 30
days-before-issue-close: 30
close-pr-message: 'This PR is stale and had no activity for too long - it will now be closed.'
close-issue-message: 'This issue is stale and had no activity for too long - it will now be closed.'

0 comments on commit ea15bfa

Please sign in to comment.