stale: Use github token and add permission
This commit is contained in:
parent
3859e2ebf5
commit
ea598fbca7
1 changed files with 3 additions and 2 deletions
5
.github/workflows/stale.yml
vendored
5
.github/workflows/stale.yml
vendored
|
|
@ -2,16 +2,17 @@ name: "Close stale PR"
|
|||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.FLATHUBBOT_TOKEN }}
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-pr-message: "This PR hasn't received any updates in a year and will be automatically closed in 30 days. If you still plan to work on this please comment or re-open the PR."
|
||||
days-before-stale: -1
|
||||
days-before-close: -1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue