Skip to content

StaleBOT

StaleBOT #222

Workflow file for this run

name: StaleBOT
on:
workflow_dispatch:
name: 'Force cleanup'
schedule:
- cron: "30 14 * * *"
permissions:
pull-requests: write
issues: write
contents: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Generate App token
id: generated_token
uses: tibdex/github-app-token@v2.1.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/stale@v9
with:
repo-token: ${{ steps.generated_token.outputs.token }}
days-before-stale: 7
days-before-close: 3
stale-issue-message: 'This issue has been marked as stale due to inactivity and will be closed. Comment anything on this issue to prevent it'
stale-pr-message: 'This pull request has been marked as stale due to inactivity and will be closed. Comment anything on this PR to prevent it'
exempt-issue-labels: 'not-stale'
exempt-pr-labels: 'not-stale'