Skip to content

Commit

Permalink
[Fix]: update stale workflow (#1825)
Browse files Browse the repository at this point in the history
* fix

* add job permission

* update
  • Loading branch information
RunningLeon authored Mar 23, 2023
1 parent dba46c3 commit 39c3282
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ on:
- cron: '30 1 * * *'

permissions:
contents: write
contents: read

jobs:
stale:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v6
- uses: actions/stale@v7
with:
stale-issue-message: 'This issue is marked as stale because it has been marked as invalid or awaiting response for 7 days without any further response. It will be closed in 5 days if the stale label is not removed or if there is no further response.'
stale-pr-message: 'This PR is marked as stale because there has been no activity in the past 45 days. It will be closed in 10 days if the stale label is not removed or if there is no further updates.'
Expand All @@ -26,3 +29,4 @@ jobs:
days-before-pr-close: 10
# automatically remove the stale label when the issues or the pull reqquests are updated or commented
remove-stale-when-updated: true
operations-per-run: 50

0 comments on commit 39c3282

Please sign in to comment.