Skip to content

Commit aae485d

Browse files
Copilotaaronpowell
andauthored
Tune stale workflow behavior (#1311)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
1 parent dc4859d commit aae485d

2 files changed

Lines changed: 20 additions & 19 deletions

File tree

.github/workflows/remove-stale-label.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ permissions:
99
pull-requests: write
1010

1111
jobs:
12-
debug:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Debug
16-
run: |
17-
echo "Event name: ${{ github.event_name }}"
18-
echo "Comment body: ${{ github.event.comment.body }}"
19-
echo "Issue number: ${{ github.event.issue.number }}"
20-
echo "Pull request number: ${{ github.event.pull_request.number }}"
21-
2212
remove-stale-label:
2313
if: github.event.comment.body == '/stale-extend'
2414
runs-on: ubuntu-latest

.github/workflows/stale-issues.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ jobs:
3030
days-before-stale: 21
3131
days-before-close: 14
3232
enable-statistics: true
33-
exempt-issue-labels: "awaiting-response"
33+
exempt-issue-labels: "awaiting-response,Question,Resolved"
3434
exempt-pr-labels: "awaiting-response"
35+
exempt-draft-pr: true
36+
exempt-all-assignees: true
37+
exempt-all-milestones: true
3538
remove-stale-when-updated: true
3639
stale-issue-message: "We have noticed this issue has not been updated within 21 days. If there is no action on this issue in the next 14 days, we will automatically close it. You can use `/stale-extend` to extend the window."
3740
stale-pr-message: "We have noticed this PR has not been updated within 21 days. If there is no action on this PR in the next 14 days, we will automatically close it. You can use `/stale-extend` to extend the window."
@@ -44,25 +47,33 @@ jobs:
4447
name: Question and Resolved issue stale bot
4548
with:
4649
repo-token: ${{ secrets.GITHUB_TOKEN }}
47-
days-before-stale: 5
48-
days-before-close: 2
50+
days-before-stale: 10
51+
days-before-close: 7
4952
enable-statistics: true
50-
only-issue-labels: "Question,Resolved"
53+
any-of-issue-labels: "Question,Resolved"
54+
exempt-all-assignees: true
55+
exempt-all-milestones: true
5156
remove-stale-when-updated: true
52-
stale-issue-message: "We have noticed this issue has been resolved for 5 days. If there is no action on this issue in the next 2 days, we will automatically close it. You can use `/stale-extend` to extend the window."
57+
stale-issue-message: "We have noticed this issue has been marked as Question or Resolved and has not been updated within 10 days. If there is no action on this issue in the next 7 days, we will automatically close it. You can use `/stale-extend` to extend the window."
58+
close-issue-message: "This issue has remained stale after being marked as Question or Resolved and has been automatically closed."
5359
stale-issue-label: "stale"
5460

5561
- uses: actions/stale@v10
5662
name: Awaiting response issue and PR stale bot
5763
with:
5864
repo-token: ${{ secrets.GITHUB_TOKEN }}
59-
days-before-stale: 7
60-
days-before-close: 3
65+
days-before-stale: 10
66+
days-before-close: 7
6167
enable-statistics: true
6268
only-issue-labels: "awaiting-response"
6369
only-pr-labels: "awaiting-response"
70+
exempt-draft-pr: true
71+
exempt-all-assignees: true
72+
exempt-all-milestones: true
6473
remove-stale-when-updated: true
65-
stale-issue-message: "We have noticed this issue has been awaiting response for 7 days. If there is no action on this issue in the next 3 days, we will automatically close it. You can use `/stale-extend` to extend the window."
66-
stale-pr-message: "We have noticed this PR has been awaiting response for 7 days. If there is no action on this PR in the next 3 days, we will automatically close it. You can use `/stale-extend` to extend the window."
74+
stale-issue-message: "We have noticed this issue has been awaiting response for 10 days. If there is no action on this issue in the next 7 days, we will automatically close it. You can use `/stale-extend` to extend the window."
75+
stale-pr-message: "We have noticed this PR has been awaiting response for 10 days. If there is no action on this PR in the next 7 days, we will automatically close it. You can use `/stale-extend` to extend the window."
76+
close-issue-message: "This issue has remained in awaiting response state and has been automatically closed."
77+
close-pr-message: "This PR has remained in awaiting response state and has been automatically closed."
6778
stale-issue-label: "stale"
6879
stale-pr-label: "stale"

0 commit comments

Comments
 (0)