8000 Add configuration for stale bot (#454) · tecton-ai/rules_python@0ab06a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ab06a2

Browse files
authored
Add configuration for stale bot (bazel-contrib#454)
Ideally we would have the resources to address and resolve all issues, and review and merge all pull requests. But we don't. Rather than leave these open indefinitely, it's better to set user expectations that these will just age out.
1 parent 5d6c0a2 commit 0ab06a2

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/stale.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# See https://github.com/marketplace/actions/close-stale-issues
2+
3+
name: Mark stale issues and pull requests
4+
5+
on:
6+
schedule:
7+
# run at 22:45 UTC daily
8+
- cron: "45 22 * * *"
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/stale@v3
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
19+
# NB: We start with very long duration while trimming existing issues,
20+
# with the hope to reduce when/if we get better at keeping up with user support.
21+
22+
# The number of days old an issue can be before marking it stale.
23+
days-before-stale: 180
24+
# Number of days of inactivity before a stale issue is closed
25+
days-before-close: 30
26+
27+
# If an issue/PR is assigned, trust the assignee to stay involved
28+
# Can revisit if these get stale
29+
exempt-all-assignees: true
30+
# Issues with these labels will never be considered stale
31+
exempt-issue-labels: "need: discussion,cleanup"
32+
33+
# Label to use when marking an issue as stale
34+
stale-issue-label: 'Can Close?'
35+
stale-pr-label: 'Can Close?'
36+
37+
stale-issue-message: >
38+
This issue has been automatically marked as stale because it has not had
39+
any activity for 180 days.
40+
It will be closed if no further activity occurs in 30 days.
41+
42+
Collaborators can add an assignee to keep this open indefinitely.
43+
Thanks for your contributions to rules_python!
44+
45+
stale-pr-message: >
46+
This Pull Request has been automatically marked as stale because it has not had
47+
any activity for 180 days.
48+
It will be closed if no further activity occurs in 30 days.
49+
50+
Collaborators can add an assignee to keep this open indefinitely.
51+
Thanks for your contributions to rules_python!
52+
53+
close-issue-message: >
54+
This issue was automatically closed because it went 30 days without a reply
55+
since it was labeled "Can Close?"
56+
57+
close-pr-message: >
58+
This PR was automatically closed because it went 30 days without a reply
59+
since it was labeled "Can Close?"

0 commit comments

Comments
 (0)
0