From 9a0a996fe4c8c69fa233bc874c35c4ebe26a0a5c Mon Sep 17 00:00:00 2001 From: Arthur Barr Date: Tue, 21 Sep 2021 15:57:38 +0100 Subject: [PATCH] Create GitHub workflow for stale issues and PRs --- .github/workflows/stale.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/stale.yaml diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 0000000..1c98536 --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,22 @@ +name: Close inactive issues and PRs +on: + schedule: + - cron: "30 1 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v3 + with: + days-before-stale: 90 + days-before-close: 30 + stale-issue-label: "stale" + stale-pr-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 30 days since being marked as stale." + repo-token: ${{ secrets.GITHUB_TOKEN }} + exempt-issue-labels: "bug,enhancement,documentation"