mirror of
https://github.com/redis/go-redis.git
synced 2025-09-04 09:22:10 +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:
|
stale:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v9
|
# First step: Handle regular issues (excluding needs-information)
|
||||||
|
- name: Mark regular issues as stale
|
||||||
|
uses: actions/stale@v9
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
dry-run: true
|
debug-only: true
|
||||||
|
|
||||||
# Default stale policy
|
# Default stale policy
|
||||||
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
|
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
|
||||||
@@ -40,7 +42,7 @@ jobs:
|
|||||||
This issue has been automatically closed due to inactivity.
|
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.
|
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'
|
exempt-issue-labels: 'no-stale,needs-information'
|
||||||
|
|
||||||
# Remove stale label when issue/PR becomes active again
|
# 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)
|
# Only exclude no-stale PRs (needs-information PRs follow standard timeline)
|
||||||
exempt-pr-labels: 'no-stale'
|
exempt-pr-labels: 'no-stale'
|
||||||
|
|
||||||
# Separate job for needs-information issues ONLY with accelerated timeline
|
# Second step: Handle needs-information issues with accelerated timeline
|
||||||
stale-needs-info:
|
- name: Mark needs-information issues as stale
|
||||||
runs-on: ubuntu-latest
|
uses: actions/stale@v9
|
||||||
steps:
|
|
||||||
- uses: actions/stale@v9
|
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
dry-run: true
|
debug-only: true
|
||||||
|
|
||||||
# Accelerated timeline for needs-information
|
# Accelerated timeline for needs-information
|
||||||
days-before-stale: ${{ env.NEEDS_INFO_DAYS_BEFORE_STALE }}
|
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.
|
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.
|
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-stale: -1
|
||||||
days-before-pr-close: -1
|
days-before-pr-close: -1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user