Skip to content

Commit ba59ca0

Browse files
authored
Merge pull request #1512 from manmaed/feature/stale
Update Stale workflow
2 parents ffeb2cc + 4403e11 commit ba59ca0

File tree

1 file changed

+24
-31
lines changed

1 file changed

+24
-31
lines changed

.github/stale.yml

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
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: 14
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-
- "state: Awaiting Reply :speaking_head:"
13-
14-
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
15-
exemptLabels: []
16-
17-
# Label to use when marking as stale
18-
staleLabel: "state: Stale"
19-
20-
# Comment to post when marking as stale. Set to `false` to disable
21-
markComment: >
22-
This issue has been automatically marked as stale because it is in a state
23-
of "Awaiting Reply" but no reply has been received within 14 days.
24-
It will be closed within 7 days if it is not updated with a reply.
25-
26-
# Comment to post when closing a stale Issue or Pull Request.
27-
closeComment: >
28-
This issue has been automatically closed because due to lack of response.
29-
30-
# Limit the number of actions per hour, from 1-30. Default is 30
31-
limitPerRun: 30
1+
name: 'Close stale issues and PRs'
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 */12 * * *"
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v8
16+
with:
17+
stale-issue-message: 'This issue has been automatically marked as stale because it has been in the Awaiting Reply state for 14 days without a response. If no reply is provided within the next 7 days, it will be closed.'
18+
close-issue-message: 'This issue has been closed due to a lack of recent activity after being marked as stale.'
19+
days-before-stale: 14
20+
days-before-close: 7
21+
days-before-pr-close: -1
22+
stale-issue-label: 'state: Stale'
23+
only-issue-labels: 'state: Awaiting Reply :speaking_head:'
24+
operations-per-run: 100

0 commit comments

Comments
 (0)