mirror of
https://github.com/redis/go-redis.git
synced 2025-09-02 22:01:16 +03:00
chore(github): merges into one job with two steps (#3463)
Signed-off-by: Elena Kolevska <elena@kolevska.com>
This commit is contained in:
committed by
ofekshenawa
parent
bbadd655ed
commit
d0717e5b84
20
.github/workflows/stale-issues.yml
vendored
20
.github/workflows/stale-issues.yml
vendored
@@ -18,10 +18,12 @@ jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
# First step: Handle regular issues (excluding needs-information)
|
||||
- name: Mark regular issues as stale
|
||||
uses: actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
dry-run: true
|
||||
debug-only: true
|
||||
|
||||
# Default stale policy
|
||||
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
|
||||
@@ -40,7 +42,7 @@ jobs:
|
||||
This issue has been automatically closed due to inactivity.
|
||||
If you believe this issue is still relevant, please reopen it or create a new issue with updated information.
|
||||
|
||||
# Exclude needs-information issues from this job
|
||||
# Exclude needs-information issues from this step
|
||||
exempt-issue-labels: 'no-stale,needs-information'
|
||||
|
||||
# Remove stale label when issue/PR becomes active again
|
||||
@@ -61,14 +63,12 @@ jobs:
|
||||
# Only exclude no-stale PRs (needs-information PRs follow standard timeline)
|
||||
exempt-pr-labels: 'no-stale'
|
||||
|
||||
# Separate job for needs-information issues ONLY with accelerated timeline
|
||||
stale-needs-info:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
# Second step: Handle needs-information issues with accelerated timeline
|
||||
- name: Mark needs-information issues as stale
|
||||
uses: actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
dry-run: true
|
||||
debug-only: true
|
||||
|
||||
# Accelerated timeline for needs-information
|
||||
days-before-stale: ${{ env.NEEDS_INFO_DAYS_BEFORE_STALE }}
|
||||
@@ -89,7 +89,7 @@ jobs:
|
||||
This issue has been closed because the requested information was not provided within the specified timeframe.
|
||||
If you can provide the missing information, please reopen this issue or create a new one.
|
||||
|
||||
# Disable PR processing for this job
|
||||
# Disable PR processing for this step
|
||||
days-before-pr-stale: -1
|
||||
days-before-pr-close: -1
|
||||
|
||||
|
Reference in New Issue
Block a user