-
Notifications
You must be signed in to change notification settings - Fork 62.5k
Replace stale.yml with the workflow from another repo #38763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+45
−23
Closed
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f800736
Update stale.yml
Sharra-writes 9a9ec96
Update .github/workflows/stale.yml
Sharra-writes 3e5e096
Update .github/workflows/stale.yml
Sharra-writes 155f45f
Update .github/workflows/stale.yml
Sharra-writes 61aa524
Merge branch 'main' into Sharra-writes-stale-testing
Sharra-writes bc3601d
Update stale.yml
Sharra-writes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,63 @@ | ||
name: Stale | ||
#name: Stale | ||
|
||
# **What it does**: Close issues and pull requests after no updates for 365 days. | ||
# **Why we have it**: We want to manage our queue of issues and pull requests. | ||
# **Who does it impact**: Everyone that works on docs or docs-internal. | ||
|
||
#on: | ||
#schedule: | ||
# - cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST | ||
|
||
#permissions: | ||
#contents: read | ||
#issues: write | ||
#pull-requests: write | ||
|
||
#jobs: | ||
#stale: | ||
#if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' | ||
#runs-on: ubuntu-latest | ||
#steps: | ||
#- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | ||
#with: | ||
#repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
#stale-issue-message: 'This issue is stale because there have been no updates in 365 days.' | ||
#stale-pr-message: 'This PR is stale because there have been no updates in 365 days.' | ||
#days-before-stale: 365 | ||
#days-before-close: 0 | ||
#stale-issue-label: 'stale' | ||
#stale-pr-label: 'stale' | ||
#exempt-pr-labels: 'never-stale,waiting for review' | ||
#exempt-issue-labels: 'never-stale,help wanted,waiting for review' | ||
#operations-per-run: 1000 | ||
#close-issue-reason: not_planned | ||
|
||
#- name: Check out repo | ||
#if: ${{ failure() }} | ||
#uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
#- uses: ./.github/actions/slack-alert | ||
#if: ${{ failure() }} | ||
#with: | ||
#slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }} | ||
#slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }} | ||
|
||
name: 'Marks stale issues and PRs' | ||
on: | ||
schedule: | ||
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST | ||
- cron: '30 1 * * *' # 1:30 AM UTC | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
stale: | ||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | ||
- uses: actions/stale@v9 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'This issue is stale because there have been no updates in 365 days.' | ||
stale-pr-message: 'This PR is stale because there have been no updates in 365 days.' | ||
stale-issue-label: 'stale, triage' # The label that will be added to the issues when automatically marked as stale | ||
start-date: '2024-11-25T00:00:00Z' # Skip stale action for issues/PRs created before it | ||
days-before-stale: 365 | ||
days-before-close: 0 | ||
stale-issue-label: 'stale' | ||
stale-pr-label: 'stale' | ||
exempt-pr-labels: 'never-stale,waiting for review' | ||
exempt-issue-labels: 'never-stale,help wanted,waiting for review' | ||
operations-per-run: 1000 | ||
close-issue-reason: not_planned | ||
|
||
- name: Check out repo | ||
if: ${{ failure() }} | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: ./.github/actions/slack-alert | ||
if: ${{ failure() }} | ||
with: | ||
slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }} | ||
slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }} | ||
days-before-close: -1 # If -1, the issues nor pull requests will never be closed automatically. | ||
days-before-pr-stale: -1 # If -1, no pull requests will be marked as stale automatically. | ||
exempt-issue-labels: 'never-stale, help wanted, ' # issues labeled as such will be excluded them from being marked as stale |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.