1
0
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:
Elena Kolevska
2025-08-05 12:49:28 +01:00
committed by ofekshenawa
parent bbadd655ed
commit d0717e5b84

View File

@@ -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 }}
@@ -32,15 +34,15 @@ jobs:
stale-pr-label: "stale" stale-pr-label: "stale"
stale-issue-message: | stale-issue-message: |
This issue has been automatically marked as stale due to inactivity. This issue has been automatically marked as stale due to inactivity.
It will be closed in 30 days if no further activity occurs. It will be closed in 30 days if no further activity occurs.
If you believe this issue is still relevant, please add a comment to keep it open. If you believe this issue is still relevant, please add a comment to keep it open.
close-issue-message: | close-issue-message: |
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
@@ -51,24 +53,22 @@ jobs:
days-before-pr-close: ${{ env.DAYS_BEFORE_CLOSE }} days-before-pr-close: ${{ env.DAYS_BEFORE_CLOSE }}
stale-pr-message: | stale-pr-message: |
This pull request has been automatically marked as stale due to inactivity. This pull request has been automatically marked as stale due to inactivity.
It will be closed in 30 days if no further activity occurs. It will be closed in 30 days if no further activity occurs.
close-pr-message: | close-pr-message: |
This pull request has been automatically closed due to inactivity. This pull request has been automatically closed due to inactivity.
If you would like to continue this work, please reopen the PR or create a new one. If you would like to continue this work, please reopen the PR or create a new one.
# 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 }}
@@ -81,15 +81,15 @@ jobs:
only-issue-labels: 'needs-information' only-issue-labels: 'needs-information'
stale-issue-message: | stale-issue-message: |
This issue has been marked as stale because it requires additional information This issue has been marked as stale because it requires additional information
that has not been provided for 30 days. It will be closed in 7 days if the that has not been provided for 30 days. It will be closed in 7 days if the
requested information is not provided. requested information is not provided.
close-issue-message: | close-issue-message: |
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