From 52a7d21b594357a6e09e6a7e7297c8291f188844 Mon Sep 17 00:00:00 2001 From: AL Berez Date: Fri, 27 Sep 2024 09:58:22 -0700 Subject: [PATCH] Manage stale issues and PRs --- .github/workflows/stale-issues.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/stale-issues.yml diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml new file mode 100644 index 0000000000..58fa00f929 --- /dev/null +++ b/.github/workflows/stale-issues.yml @@ -0,0 +1,31 @@ +permissions: + contents: write + issues: write + pull-requests: write + +name: 'Close stale issues and PRs' +on: + workflow_dispatch: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + name: Close Stale Issues + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed.' + stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed.' + close-issue-message: 'Thank you for your submission. If you encounter this issue with the latest version of CF CLI, please open a new ticket with the necessary information as per our issue template.' + close-pr-message: 'Thank you for your submission. If your change is still relevant, please update and reopen it.' + days-before-issue-stale: 30 + days-before-pr-stale: 45 + days-before-issue-close: 365 + days-before-pr-close: 365 + stale-issue-label: 'no-issue-activity' + exempt-issue-labels: 'awaiting-approval,work-in-progress' + stale-pr-label: 'no-pr-activity' + exempt-pr-labels: 'awaiting-approval,work-in-progress' + # only-labels: 'awaiting-feedback,awaiting-answers' \ No newline at end of file