Skip to content

Commit d0717e5

Browse files
elena-kolevskaofekshenawa
authored andcommitted
chore(github): merges into one job with two steps (#3463)
Signed-off-by: Elena Kolevska <[email protected]>
1 parent bbadd65 commit d0717e5

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/stale-issues.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ jobs:
1818
stale:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/stale@v9
21+
# First step: Handle regular issues (excluding needs-information)
22+
- name: Mark regular issues as stale
23+
uses: actions/stale@v9
2224
with:
2325
repo-token: ${{ secrets.GITHUB_TOKEN }}
24-
dry-run: true
26+
debug-only: true
2527

2628
# Default stale policy
2729
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
@@ -32,15 +34,15 @@ jobs:
3234
stale-pr-label: "stale"
3335

3436
stale-issue-message: |
35-
This issue has been automatically marked as stale due to inactivity.
36-
It will be closed in 30 days if no further activity occurs.
37+
This issue has been automatically marked as stale due to inactivity.
38+
It will be closed in 30 days if no further activity occurs.
3739
If you believe this issue is still relevant, please add a comment to keep it open.
3840
3941
close-issue-message: |
40-
This issue has been automatically closed due to inactivity.
42+
This issue has been automatically closed due to inactivity.
4143
If you believe this issue is still relevant, please reopen it or create a new issue with updated information.
4244
43-
# Exclude needs-information issues from this job
45+
# Exclude needs-information issues from this step
4446
exempt-issue-labels: 'no-stale,needs-information'
4547

4648
# Remove stale label when issue/PR becomes active again
@@ -51,24 +53,22 @@ jobs:
5153
days-before-pr-close: ${{ env.DAYS_BEFORE_CLOSE }}
5254

5355
stale-pr-message: |
54-
This pull request has been automatically marked as stale due to inactivity.
56+
This pull request has been automatically marked as stale due to inactivity.
5557
It will be closed in 30 days if no further activity occurs.
5658
5759
close-pr-message: |
58-
This pull request has been automatically closed due to inactivity.
60+
This pull request has been automatically closed due to inactivity.
5961
If you would like to continue this work, please reopen the PR or create a new one.
6062
6163
# Only exclude no-stale PRs (needs-information PRs follow standard timeline)
6264
exempt-pr-labels: 'no-stale'
6365

64-
# Separate job for needs-information issues ONLY with accelerated timeline
65-
stale-needs-info:
66-
runs-on: ubuntu-latest
67-
steps:
68-
- uses: actions/stale@v9
66+
# Second step: Handle needs-information issues with accelerated timeline
67+
- name: Mark needs-information issues as stale
68+
uses: actions/stale@v9
6969
with:
7070
repo-token: ${{ secrets.GITHUB_TOKEN }}
71-
dry-run: true
71+
debug-only: true
7272

7373
# Accelerated timeline for needs-information
7474
days-before-stale: ${{ env.NEEDS_INFO_DAYS_BEFORE_STALE }}
@@ -81,15 +81,15 @@ jobs:
8181
only-issue-labels: 'needs-information'
8282

8383
stale-issue-message: |
84-
This issue has been marked as stale because it requires additional information
85-
that has not been provided for 30 days. It will be closed in 7 days if the
84+
This issue has been marked as stale because it requires additional information
85+
that has not been provided for 30 days. It will be closed in 7 days if the
8686
requested information is not provided.
8787
8888
close-issue-message: |
89-
This issue has been closed because the requested information was not provided within the specified timeframe.
89+
This issue has been closed because the requested information was not provided within the specified timeframe.
9090
If you can provide the missing information, please reopen this issue or create a new one.
9191
92-
# Disable PR processing for this job
92+
# Disable PR processing for this step
9393
days-before-pr-stale: -1
9494
days-before-pr-close: -1
9595

0 commit comments

Comments
 (0)