summaryrefslogtreecommitdiff
path: root/.github/workflows/close-inactive-bot.yml
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-10-17 17:29:15 +0200
committerkylo252 <[email protected]>2022-10-17 17:29:15 +0200
commit4ef07315003f723bb8e97d5a91b2bde3773ec1b8 (patch)
treee9889a492f76e3f9573228343aaba647dfd48136 /.github/workflows/close-inactive-bot.yml
parente4a5fe97abe500bbbe78fb137d57a59f558da05a (diff)
parent6f6cbc394d2a7e64964b6067a2f42d2e6a07824e (diff)
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to '.github/workflows/close-inactive-bot.yml')
-rw-r--r--.github/workflows/close-inactive-bot.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/close-inactive-bot.yml b/.github/workflows/close-inactive-bot.yml
new file mode 100644
index 00000000..0ae33625
--- /dev/null
+++ b/.github/workflows/close-inactive-bot.yml
@@ -0,0 +1,22 @@
+name: Close inactive issues
+on:
+ schedule:
+ - cron: '30 1 * * *'
+
+jobs:
+ close-issues:
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
+ steps:
+ - uses: actions/stale@v5
+ with:
+ days-before-issue-stale: 30
+ days-before-issue-close: 14
+ stale-issue-label: 'stale'
+ stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity.'
+ close-issue-message: 'This issue was closed because it has been inactive for 14 days since being marked as stale.'
+ days-before-pr-stale: -1
+ days-before-pr-close: -1
+ repo-token: ${{ secrets.GITHUB_TOKEN }}