Skip to content

Commit

Permalink
Automatically mark stale PRs & close them after 7 days (adobecom#2071)
Browse files Browse the repository at this point in the history
Mark stale PRs
  • Loading branch information
mokimo authored Apr 9, 2024
1 parent d298a4e commit 783e178
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/mark-stale-prs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Close stale pull requests"
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'This PR has not been updated recently and will be closed in 7 days if no action is taken. Please ensure all checks are passing, https://github.com/orgs/adobecom/discussions/997 provides instructions. If the PR is ready to be merged, please mark it with the "Ready for Stage" label.'
close-pr-message: 'Closing this PR due to inactivity.'
days-before-stale: 7
days-before-close: 7
exempt-pr-labels: 'Ready for Stage'
operations-per-run: 100

0 comments on commit 783e178

Please sign in to comment.