Check for stale PRs #50
This file contains hidden or 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: Check for stale PRs | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Every day at midnight | |
workflow_dispatch: | |
jobs: | |
close-stale: | |
runs-on: ubuntu-latest | |
name: "Label and close stale PRs after no activity for a long time" | |
steps: | |
- name: "Close stale PRs" | |
uses: actions/[email protected] | |
with: | |
stale-pr-label: Stale | |
days-before-stale: 60 | |
days-before-close: 2 | |
stale-pr-message: "Your PR has not had any activity for 60 days. In 2 days I'll close it. Make some activity to remove this." | |
close-pr-message: "Your PR has now been stale for 2 days. I'm closing it." | |
delete-branch: true |