-
Notifications
You must be signed in to change notification settings - Fork 835
chore: migrate from deprecated stale bot app to GitHub Actions stale action #4245
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
Merged
+31
−18
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
41b63aa
Initial plan
Copilot 31dbf56
Migrate from stale bot app to GitHub Actions stale action
Copilot 7477b86
Update stale action to v10.1.0
Copilot 67cd96c
Merge branch 'master' into copilot/migrate-to-stale-action
JaydipGabani 0220c10
updating inacticity days to 90 before marking it stale
JaydipGabani bee0a6d
marking 60 days as stale
JaydipGabani a007adf
Merge branch 'master' into copilot/migrate-to-stale-action
JaydipGabani a754126
Merge branch 'master' into copilot/migrate-to-stale-action
sozercan 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 was deleted.
Oops, something went wrong.
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,37 @@ | ||
| name: "Close stale issues and PRs" | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 0 * * *" # Run daily at midnight UTC | ||
|
|
||
| permissions: | ||
| issues: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| stale: | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - name: Harden Runner | ||
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | ||
| with: | ||
| egress-policy: audit | ||
|
|
||
| - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | ||
| with: | ||
| # Number of days of inactivity before an issue becomes stale | ||
| days-before-stale: 60 | ||
| # Number of days of inactivity before a stale issue is closed | ||
| days-before-close: 14 | ||
| # Label to use when marking an issue as stale | ||
| stale-issue-label: 'stale' | ||
| stale-pr-label: 'stale' | ||
| # Issues/PRs with these labels will never be considered stale | ||
| exempt-issue-labels: 'pinned,security,triaged' | ||
| exempt-pr-labels: 'pinned,security,triaged' | ||
| # Comment to post when marking an issue as stale | ||
| stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.' | ||
| stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.' | ||
| # Disable close comments (set to empty string) | ||
| close-issue-message: '' | ||
| close-pr-message: '' | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use commit for 10.1.0 tag and update the comment accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to use the commit hash for v10.1.0 tag (5f858e3) and updated the comment accordingly in commit 7477b86.