-
Notifications
You must be signed in to change notification settings - Fork 0
add gha to label and close stale pull requests #290
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
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,27 @@ | ||||||||||
| # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. | ||||||||||
| # | ||||||||||
| # You can adjust the behavior by modifying this file. | ||||||||||
| # For more information, see: | ||||||||||
| # https://github.com/actions/stale | ||||||||||
| name: Mark stale issues and pull requests | ||||||||||
|
|
||||||||||
| on: | ||||||||||
| schedule: | ||||||||||
| - cron: "06 6 * * *" | ||||||||||
|
|
||||||||||
| jobs: | ||||||||||
| stale: | ||||||||||
| runs-on: ubuntu-latest | ||||||||||
| permissions: | ||||||||||
| issues: write | ||||||||||
| pull-requests: write | ||||||||||
|
|
||||||||||
| steps: | ||||||||||
| - uses: actions/stale@v5 | ||||||||||
| with: | ||||||||||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||||||||||
| stale-issue-message: "Stale issue message" | ||||||||||
| stale-pr-message: "Stale pull request message" | ||||||||||
|
Comment on lines
+23
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace placeholder messages with actionable, descriptive text. The stale messages are generic placeholders that don't provide useful information to contributors. Users should understand why their item is marked as stale and what actions they can take to keep it active. Consider updating the messages with more context: - stale-issue-message: "Stale issue message"
- stale-pr-message: "Stale pull request message"
+ stale-issue-message: "This issue has been inactive for 30 days. Please add a comment or update the issue if it is still relevant, otherwise it will be closed in 7 days."
+ stale-pr-message: "This pull request has been inactive for 30 days. Please add a comment or make updates if you're still working on it, otherwise it will be closed in 7 days."Customize these messages as appropriate for your repository's workflow and community guidelines. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| stale-issue-label: "no-issue-activity" | ||||||||||
| stale-pr-label: "no-pr-activity" | ||||||||||
| days-before-stale: 30 | ||||||||||
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.
🧩 Analysis chain
Update
actions/staleto a compatible version.The static analysis tool (actionlint) flags that
actions/stale@v5is incompatible with the current GitHub Actions runner. This will cause the workflow to fail at runtime.Please update the action to a more recent version:
Note: The version number is a suggestion; please verify the latest stable version of the stale action available.
🌐 Web query:
💡 Result:
The latest stable version is v10.1.0. [1]
Sources
[1] actions/stale package page on GitHub Packages (shows 10.1.0 as Latest).
Update
actions/staleto v10.1.0.The latest stable version of actions/stale is v10.1.0. The current version v5 in line 20 is incompatible with the current GitHub Actions runner and will cause the workflow to fail at runtime.
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.8)
20-20: the runner of "actions/stale@v5" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents