From a83618ef242ea42ae447a2edbb1814288a9f5bc1 Mon Sep 17 00:00:00 2001 From: Cael Warner <52902343+CaelWarner@users.noreply.github.com> Date: Wed, 15 Dec 2021 02:35:00 -0800 Subject: [PATCH] Added "Manage Issues" action - Added manage_issues.yml to automatically deal with inactive issues --- .github/workflows/manage_issues.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/manage_issues.yml diff --git a/.github/workflows/manage_issues.yml b/.github/workflows/manage_issues.yml new file mode 100644 index 000000000..0b1b1a10f --- /dev/null +++ b/.github/workflows/manage_issues.yml @@ -0,0 +1,23 @@ +name: "Manage Issues" +on: + schedule: + - cron: '0 */12 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/stale@v4 + with: + days-before-issue-stale: 21 + days-before-issue-close: 21 + stale-issue-label: "stale" + exempt-issue-labels: "timeless, suggestion" + stale-issue-message: "This issue has been marked as stale because it has been inactive for 3 weeks. It will be closed if it remains inactive for another 3 weeks." + close-issue-message: "This issue has been closed since it has been inactive for 3 weeks since it was marked as stale." + days-before-pr-stale: -1 + days-before-pr-close: -1 + operations-per-run: 300 + repo-token: ${{ secrets.GITHUB_TOKEN }}