-
Notifications
You must be signed in to change notification settings - Fork 8.3k
add stale workflow #24681
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
Open
craig-osterhout
wants to merge
5
commits into
docker:main
Choose a base branch
from
craig-osterhout:engdocs-3228
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+206
−0
Open
add stale workflow #24681
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
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 |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. | ||
| # For more information, see: https://github.com/actions/stale | ||
| name: Mark stale issues and pull requests | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '30 1 * * *' # Daily at 1:30 AM UTC | ||
|
|
||
| jobs: | ||
| stale: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| issues: write | ||
| pull-requests: write | ||
|
|
||
| steps: | ||
| - uses: actions/stale@v10 | ||
| with: | ||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
| ascending: false | ||
| operations-per-run: 30 | ||
|
|
||
| # Exempt labels - issues/PRs with these labels will never be marked stale | ||
| exempt-issue-labels: 'kind/help wanted,status/need-more-info,status/needs-analysis' | ||
| exempt-pr-labels: 'kind/help wanted,status/need-more-info,status/needs-analysis' | ||
|
|
||
| # Stale messages | ||
| stale-issue-message: "There hasn't been any activity on this issue for a long time. If the problem is still relevant, add a comment on this issue. If not, this issue will be closed in 14 days." | ||
| stale-pr-message: "Thanks for the PR. We'd like to make our product docs better, but haven't been able to review all the suggestions. As our docs change often and quickly diverge, we do not have the bandwidth to review and rebase old PRs. If the updates are still relevant, review our [contribution guidelines](https://docs.docker.com/contribute/overview/) and rebase your PR against the latest version of the docs. This helps our maintainers focus on the active issues. If there's no activity, this PR will be closed in 30 days." | ||
|
|
||
| # Close messages | ||
| close-issue-message: "Closing this issue as there hasn't been any activity on this issue for a long time. If the problem is still relevant, open a new issue and complete the issue template so we can capture the details required to investigate the issue further. This also helps our maintainers focus on the active issues." | ||
| close-pr-message: "Closing this PR as there hasn't been any activity on this PR for a long time. If the updates are still relevant, review our [contribution guidelines](https://docs.docker.com/contribute/overview/) and create a new PR against the latest version of our docs." | ||
|
|
||
| # Timing configuration | ||
| days-before-issue-stale: 180 # 6 months | ||
| days-before-pr-stale: 180 # 6 months | ||
| days-before-issue-close: 14 # 2 weeks after stale | ||
| days-before-pr-close: 30 # 1 month after stale | ||
|
|
||
| # Debug mode - set to false when ready for production | ||
| # When true, no actual changes will be made (dry-run for testing) | ||
| debug-only: true | ||
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.