Fix invalid stale.yml workflow (exempt labels must be strings)#60
Merged
Conversation
actions/stale (v10) requires `with:` inputs to be scalar strings, but exempt-issue-labels / exempt-pr-labels were YAML sequences, which GitHub rejects with "A sequence was not expected". Convert both to the comma-separated string form the action expects. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Review Summary by QodoFix stale.yml workflow syntax for exempt labels
WalkthroughsDescription• Convert exempt labels from YAML sequences to comma-separated strings • Fix GitHub workflow validation error in stale.yml • Comply with actions/stale v10 input requirements Diagramflowchart LR
A["YAML sequences<br/>exempt-issue-labels<br/>exempt-pr-labels"] -- "Convert to<br/>comma-separated strings" --> B["Valid scalar strings<br/>for actions/stale v10"]
File Changes1. .github/workflows/stale.yml
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The
stale.ymlworkflow is flagged Invalid workflow file onmain:actions/stale(bumped to v10) requireswith:inputs to be scalar strings, butexempt-issue-labelsandexempt-pr-labelswere written as YAML sequences. This converts them to the comma-separated string form the action expects. No change to which labels are exempt.Test Plan
stale.ymlparses as valid YAML and both inputs are now strings