Skip to content

Commit 5a3eec4

Browse files
authored
Merge pull request #136 from nathan-weinberg/stalebot
github: add stale bot to eval repo
2 parents be8a6f5 + 9a2f2d0 commit 5a3eec4

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

.github/stale_bot.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
name: 'Close stale issues and PRs'
4+
5+
on:
6+
schedule:
7+
- cron: '30 1 * * *'
8+
9+
env:
10+
LC_ALL: en_US.UTF-8
11+
12+
defaults:
13+
run:
14+
shell: bash
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
stale:
21+
permissions:
22+
issues: write
23+
pull-requests: write
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: "Harden Runner"
27+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
28+
with:
29+
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
30+
31+
- name: "Stale Action"
32+
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
33+
with:
34+
stale-issue-label: 'stale'
35+
stale-issue-message: >
36+
This issue has been automatically marked as stale because it has not had activity within 90 days.
37+
It will be automatically closed if no further activity occurs within 30 days.
38+
close-issue-message: >
39+
This issue has been automatically closed due to inactivity. Please feel free to reopen if you feel it is still relevant!
40+
days-before-issue-stale: 90
41+
days-before-issue-close: 30
42+
stale-pr-label: 'stale'
43+
stale-pr-message: >
44+
This pull request has been automatically marked as stale because it has not had activity within 90 days.
45+
It will be automatically closed if no further activity occurs within 30 days.
46+
close-pr-message: >
47+
This pull request has been automatically closed due to inactivity. Please feel free to reopen if you intend to continue working on it!
48+
days-before-pr-stale: 90
49+
days-before-pr-close: 30

0 commit comments

Comments
 (0)