aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.dev>2025-01-17 17:08:16 +0200
committerBozhidar Batsov <bozhidar@batsov.dev>2025-01-17 17:08:16 +0200
commit18965274f39ef54bcdb2c562e79e764eb7812c1f (patch)
treec459f68e75156ea886c1e267176c363e9071bf6d /.github/workflows
parent491e16c24b72f2267a8100d38da02d2aeca4ce4d (diff)
Replace the defunct stale bot with actions/stale
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/stale.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 0000000..cf44e1a
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,42 @@
+name: Close inactive issues and pull requests
+on:
+ schedule:
+ - cron: "30 1 * * *"
+
+jobs:
+ close-issues:
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
+ steps:
+ - uses: actions/stale@v9
+ with:
+ days-before-issue-stale: 30
+ days-before-issue-close: 30
+ stale-issue-label: "stale"
+ exempt-issue-labels:
+ - "high priority"
+ - "good first issue"
+ - "pinned"
+ stale-issue-message: >-
+ This issue has been automatically marked as stale because it has not
+ had any recent activity. It will be closed soon if no further
+ activity occurs. Thank you for your contribution and understanding!
+ close-issue-message: >-
+ This issue been automatically closed due to lack of activity. Feel free to re-open it
+ if you ever come back to it.
+ days-before-pr-stale: 30
+ days-before-pr-close: 30
+ exempt-pr-labels:
+ - "high priority"
+ - "good first issue"
+ - "pinned"
+ stale-pr-message: >-
+ This pull request has been automatically marked as stale because it has not
+ had any recent activity. It will be closed soon if no further
+ activity occurs. Thank you for your contribution and understanding!
+ close-pr-message: >-
+ This issue been automatically closed due to lack of activity. Feel free to re-open it
+ if you ever come back to it.
+ repo-token: ${{ secrets.GITHUB_TOKEN }}