Skip to content

Label Stale PRs

Label Stale PRs #186

Workflow file for this run

name: "Label Stale PRs"
on:
schedule:
- cron: "0 0 * * *" # Runs at midnight every day
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-latest
permissions:
actions: write
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
days-before-stale: ${{ vars.DAYS_BEFORE_PR_IS_STALE || 3 }}
days-before-close: -1 # Negative value means don't close automatically
stale-pr-label: "stale 🥖"
stale-pr-message: "This PR has been marked as stale due to ${{ vars.DAYS_BEFORE_PR_IS_STALE || 3 }} days of inactivity."
remove-stale-when-updated: true