Skip to content

.github/workflows/close-stale-prs.yml #219

.github/workflows/close-stale-prs.yml

.github/workflows/close-stale-prs.yml #219

on:
schedule:
# Cron format: min hr day month dow
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
close-stale-prs:
# this workflow will always fail in forks; bail if this isn't running in the upstream
if: github.repository == 'aws/aws-cdk'
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: cdklabs/close-stale-prs@main
with:
# Required
# Must be PROJEN_GITHUB_TOKEN because the default GHA GitHub token will not have permissions to
# know whether a user is a MEMBER of the organization or not, so we would not be able to filter PR reviews
# appropriately.
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
stale-days: 21
response-days: 14
# Optional
important-checks-regex: AutoBuildv2Project1C6BFA3F
merge-conflict-warning: |
This PR cannot be merged because it has conflicts. Please resolve them. Note that PRs with merge conflicts considered stale and will be closed if not resolved.
To prevent automatic closure:
- Fix merge conflicts
- OR request an exemption by adding a comment containing 'Exemption Request' with justification e.x "Exemption Request: <justification>"
- OR request clarification by adding a comment containing 'Clarification Request' with a question e.x "Clarification Request: <question>"
warn-message: |
This PR has been in the STATE state for 3 weeks, and looks abandoned. Note that PRs with failing linting check or builds are not reviewed, please ensure your build is passing
To prevent automatic closure:
- Resume work on the PR
- OR request an exemption by adding a comment containing 'Exemption Request' with justification e.x "Exemption Request: <justification>"
- OR request clarification by adding a comment containing 'Clarification Request' with a question e.x "Clarification Request: <question>"
This PR will automatically close in 14 days if no action is taken.
close-message: This PR has been deemed to be abandoned, and will be automatically closed. Please create a new PR for these changes if you think this decision has been made in error.
skip-labels: contribution/core,pr-linter/do-not-close,pr/needs-maintainer-review,pr-linter/exemption-requested,pr/reviewer-clarification-requested,pr/needs-community-review,pr/work-in-progress
close-label: closed-for-staleness