From 16ddb8e3e9639a39c0b58fbc0a6da264fef32660 Mon Sep 17 00:00:00 2001 From: Chris Barth Date: Thu, 1 Jun 2023 10:48:51 -0400 Subject: [PATCH 1/2] Add bot to close stale issues --- .github/workflows/stale-bot.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/stale-bot.yml diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml new file mode 100644 index 00000000..053f3bc5 --- /dev/null +++ b/.github/workflows/stale-bot.yml @@ -0,0 +1,25 @@ +name: Close stale issues +on: + schedule: + - cron: "30 1 * * *" + +jobs: + close-stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 90 + days-before-issue-close: 30 + stale-issue-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." + exempt-issue-labels: "pr-welcome" + days-before-pr-stale: 90 + days-before-pr-close: -1 + stale-pr-label: "stale" + stale-pr-message: "This PR is stale because is has been open for 90 days with no activity." + repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 4f6af97aea133747df24340694b96ea9f0eb8133 Mon Sep 17 00:00:00 2001 From: Chris Barth Date: Thu, 8 Jun 2023 17:19:50 -0400 Subject: [PATCH 2/2] format --- .github/workflows/stale-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index 053f3bc5..8467c0e9 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -22,4 +22,4 @@ jobs: days-before-pr-close: -1 stale-pr-label: "stale" stale-pr-message: "This PR is stale because is has been open for 90 days with no activity." - repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + repo-token: ${{ secrets.GITHUB_TOKEN }}