Skip to content

Commit

Permalink
Feature/add stale GitHub action (#1451)
Browse files Browse the repository at this point in the history
* adding the stale action to the repo

* adding permissions and changing the time so I can see it run

* update time to see it run
  • Loading branch information
IsmaelMartinez authored Oct 16, 2024
1 parent 404d916 commit 5177492
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: 'Close stale issues and PR'
on:
schedule:
- cron: '30 10 * * *'
- cron: '24 10 * * *'

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

steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
Expand Down

0 comments on commit 5177492

Please sign in to comment.