discourse/.github/workflows/stale-pr-closer.yml
Alan Guo Xiang Tan c8bec538c3
DEV: Only enable our self hosted runners on the discourse/discourse repo (#29024)
Our self hosted runners does not work for forked repositories.
2024-09-30 11:18:20 +08:00

20 lines
650 B
YAML

name: "Close stale PRs"
on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:
permissions:
pull-requests: write
jobs:
stale:
runs-on: ${{ (github.repository != 'discourse/discourse' && 'ubuntu-latest') || 'debian-12' }}
steps:
- uses: actions/stale@v9
with:
days-before-stale: 60
days-before-close: 14
stale-pr-message: "This pull request has been automatically marked as stale because it has been open for 60 days with no activity. To keep it open, remove the stale tag, push code, or add a comment. Otherwise, it will be closed in 14 days."
exempt-pr-labels: dependencies