stale: Use github token and add permission

This commit is contained in:
bbhtt 2024-12-10 17:26:51 +05:30
parent 3859e2ebf5
commit ea598fbca7
No known key found for this signature in database
GPG key ID: 0C3251A24745E484

View file

@ -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