Skip to content

Commit fe0f2f3

Browse files
authored
Try the stale bot instead of stale action (#3906)
* Try the stale bot instead * Add config file for the stale bot
1 parent 83b8b3c commit fe0f2f3

File tree

2 files changed

+94
-31
lines changed

2 files changed

+94
-31
lines changed

Diff for: .github/stale.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
3+
# Number of days of inactivity before an Issue or Pull Request becomes stale
4+
daysUntilStale: 30
5+
6+
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8+
daysUntilClose: 7
9+
10+
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
11+
onlyLabels: []
12+
13+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14+
exemptLabels:
15+
- "Status: on hold"
16+
17+
# Set to true to ignore issues in a project (defaults to false)
18+
exemptProjects: false
19+
20+
# Set to true to ignore issues in a milestone (defaults to false)
21+
exemptMilestones: false
22+
23+
# Set to true to ignore issues with an assignee (defaults to false)
24+
exemptAssignees: false
25+
26+
# Label to use when marking as stale
27+
staleLabel: stale
28+
29+
# Limit the number of actions per hour, from 1-30. Default is 30
30+
limitPerRun: 30
31+
32+
# Comment to post when removing the stale label.
33+
# unmarkComment: >
34+
# Your comment here.
35+
36+
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
37+
pulls:
38+
# Comment to post when marking as stale. Set to `false` to disable
39+
markComment: >
40+
This pull request has been automatically marked as stale because it has not had
41+
recent activity. It will be closed if no further activity occurs. Thank you
42+
for your contributions.
43+
44+
# Comment to post when closing a stale Pull Request.
45+
closeComment: >
46+
Please reopen this pull request once you commit the changes requested
47+
or make improvements on the code. If this is not the case and you need
48+
some help, feel free to seek help from our [Gitter](https://gitter.im/TheAlgorithms)
49+
or ping one of the reviewers. Thank you for your contributions!
50+
51+
issues:
52+
# Comment to post when marking as stale. Set to `false` to disable
53+
markComment: >
54+
This issue has been automatically marked as stale because it has not had
55+
recent activity. It will be closed if no further activity occurs. Thank you
56+
for your contributions.
57+
58+
# Comment to post when closing a stale Issue.
59+
closeComment: >
60+
Please reopen this issue once you add more information and updates here.
61+
If this is not the case and you need some help, feel free to seek help
62+
from our [Gitter](https://gitter.im/TheAlgorithms) or ping one of the
63+
reviewers. Thank you for your contributions!

Diff for: .github/workflows/stale.yml

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: Mark/Close stale issues and pull requests
2-
on:
3-
schedule:
4-
- cron: "0 * * * *" # Run every hour
5-
jobs:
6-
stale:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/[email protected]
10-
with:
11-
repo-token: ${{ secrets.GITHUB_TOKEN }}
12-
days-before-stale: 30
13-
days-before-close: 7
14-
stale-issue-message: >
15-
This issue has been automatically marked as stale because it has not had
16-
recent activity. It will be closed if no further activity occurs. Thank you
17-
for your contributions.
18-
close-issue-message: >
19-
Please reopen this issue once you add more information and updates here.
20-
If this is not the case and you need some help, feel free to seek help
21-
from our [Gitter](https://gitter.im/TheAlgorithms) or ping one of the
22-
reviewers. Thank you for your contributions!
23-
stale-pr-message: >
24-
This pull request has been automatically marked as stale because it has not had
25-
recent activity. It will be closed if no further activity occurs. Thank you
26-
for your contributions.
27-
close-pr-message: >
28-
Please reopen this pull request once you commit the changes requested
29-
or make improvements on the code. If this is not the case and you need
30-
some help, feel free to seek help from our [Gitter](https://gitter.im/TheAlgorithms)
31-
or ping one of the reviewers. Thank you for your contributions!
1+
# name: Mark/Close stale issues and pull requests
2+
# on:
3+
# schedule:
4+
# - cron: "0 * * * *" # Run every hour
5+
# jobs:
6+
# stale:
7+
# runs-on: ubuntu-latest
8+
# steps:
9+
# - uses: actions/[email protected]
10+
# with:
11+
# repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
# days-before-stale: 30
13+
# days-before-close: 7
14+
# stale-issue-message: >
15+
# This issue has been automatically marked as stale because it has not had
16+
# recent activity. It will be closed if no further activity occurs. Thank you
17+
# for your contributions.
18+
# close-issue-message: >
19+
# Please reopen this issue once you add more information and updates here.
20+
# If this is not the case and you need some help, feel free to seek help
21+
# from our [Gitter](https://gitter.im/TheAlgorithms) or ping one of the
22+
# reviewers. Thank you for your contributions!
23+
# stale-pr-message: >
24+
# This pull request has been automatically marked as stale because it has not had
25+
# recent activity. It will be closed if no further activity occurs. Thank you
26+
# for your contributions.
27+
# close-pr-message: >
28+
# Please reopen this pull request once you commit the changes requested
29+
# or make improvements on the code. If this is not the case and you need
30+
# some help, feel free to seek help from our [Gitter](https://gitter.im/TheAlgorithms)
31+
# or ping one of the reviewers. Thank you for your contributions!

0 commit comments

Comments
 (0)