Skip to content

Commit 2976421

Browse files
authored
Add stale workflow (#828)
1 parent 470e38d commit 2976421

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
lines changed

.github/workflows/issue-management-feedback-label.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Issue management - remove needs feedback label
1+
name: Issue management - remove labels as needed
22

33
on:
44
issue_comment:
@@ -20,9 +20,10 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222

23-
- name: Remove label
23+
- name: Remove labels
2424
env:
2525
ISSUE_NUMBER: ${{ github.event.issue.number }}
2626
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
run: |
2828
gh issue edit --remove-label "needs author feedback" $ISSUE_NUMBER
29+
gh issue edit --remove-label "stale" $ISSUE_NUMBER

.github/workflows/issue-management-stale-action.yml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
schedule:
55
# hourly at minute 23
66
- cron: "23 * * * *"
7+
workflow_dispatch:
78

89
permissions:
910
contents: read
@@ -18,15 +19,39 @@ jobs:
1819
steps:
1920
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
2021
with:
21-
repo-token: ${{ secrets.GITHUB_TOKEN }}
2222
days-before-stale: 7
2323
days-before-close: 7
2424
only-labels: "needs author feedback"
25+
stale-issue-label: stale
2526
stale-issue-message: >
26-
This has been automatically marked as stale because it has been marked
27-
as needing author feedback and has not had any activity for 7 days.
28-
It will be closed if no further activity occurs within 7 days of this comment.
27+
This issue has been labeled as stale due to lack of activity and needing author feedback.
28+
It will be automatically closed if there is no further activity over the next 7 days.
29+
stale-pr-label: stale
2930
stale-pr-message: >
30-
This has been automatically marked as stale because it has been marked
31-
as needing author feedback and has not had any activity for 7 days.
32-
It will be closed if no further activity occurs within 7 days of this comment.
31+
This PR has been labeled as stale due to lack of activity and needing author feedback.
32+
It will be automatically closed if there is no further activity over the next 7 days.
33+
34+
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
35+
with:
36+
days-before-stale: 365
37+
days-before-close: 0
38+
close-issue-label: stale
39+
close-issue-message: >
40+
Since there has been no activity on this enhancement for the past year we are closing it to help maintain our backlog.
41+
Anyone who would like to work on it is still welcome to do so, and we can re-open it at that time.
42+
days-before-pr-stale: -1
43+
days-before-pr-close: -1
44+
only-labels: "enhancement"
45+
exempt-issue-labels: "stale" # so that it won't close issues labeled as stale by "needs author feedback"
46+
47+
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
48+
with:
49+
days-before-issue-stale: -1
50+
days-before-issue-close: -1
51+
days-before-pr-stale: 90
52+
days-before-pr-close: 14
53+
stale-pr-label: stale
54+
stale-pr-message: >
55+
This PR has been labeled as stale due to lack of activity.
56+
It will be automatically closed if there is no further activity over the next 14 days.
57+
exempt-draft-pr: false

0 commit comments

Comments
 (0)