Skip to content

Commit

Permalink
Create stale.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianCousin authored Jul 28, 2024
1 parent 3b44ee7 commit 3ec17fb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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:
# Every Friday at 20h
- cron: '0 20 * * 5'

jobs:
stale:

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

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 365
days-before-pr-stale: 30
days-before-close: -1
stale-issue-message: 'This issue has no activity for a long time, is it still relevant ?'
stale-pr-message: 'This PR has no activity for a long time, is it still relevant ?'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'

0 comments on commit 3ec17fb

Please sign in to comment.