Mark stale issues and pull requests #206
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mark stale issues and pull requests | |
on: | |
schedule: | |
- cron: "0 */4 * * *" | |
workflow_dispatch: | |
jobs: | |
stale: | |
# Don't run in forks, they probably don't have the same labels set up | |
if: github.repository == 'py-mine/mcproto' | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.PRIVATE_KEY }} | |
- uses: actions/stale@v9 | |
with: | |
repo-token: ${{ steps.generate_token.outputs.token }} | |
stale-issue-label: "s: stale" | |
stale-pr-label: "s: stale" | |
exempt-issue-labels: "s: deferred,s: stalled" | |
exempt-pr-labels: "s: deferred,s: stalled" | |
days-before-stale: 60 | |
days-before-close: -1 |