Skip to content

Fix invalid stale.yml workflow (exempt labels must be strings)#60

Merged
SamTV12345 merged 1 commit into
mainfrom
fix/stale-workflow-syntax
May 28, 2026
Merged

Fix invalid stale.yml workflow (exempt labels must be strings)#60
SamTV12345 merged 1 commit into
mainfrom
fix/stale-workflow-syntax

Conversation

@SamTV12345

Copy link
Copy Markdown
Member

Summary

The stale.yml workflow is flagged Invalid workflow file on main:

(Line: 18, Col: 13): A sequence was not expected, (Line: 27, Col: 13): A sequence was not expected

actions/stale (bumped to v10) requires with: inputs to be scalar strings, but exempt-issue-labels and exempt-pr-labels were 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.yml parses as valid YAML and both inputs are now strings
  • GitHub no longer reports "Invalid workflow file" once merged

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-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Review Summary by Qodo

Fix stale.yml workflow syntax for exempt labels

🐞 Bug fix

Grey Divider

Walkthroughs

Description
• 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
Diagram
flowchart 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"]

Loading

Grey Divider

File Changes

1. .github/workflows/stale.yml 🐞 Bug fix +2/-18

Convert exempt labels to comma-separated strings

• Converted exempt-issue-labels from YAML sequence to comma-separated string
• Converted exempt-pr-labels from YAML sequence to comma-separated string
• Preserved all 8 label values in both inputs
• Resolves GitHub workflow validation error

.github/workflows/stale.yml


Grey Divider

Qodo Logo

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented May 28, 2026

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@SamTV12345 SamTV12345 merged commit bf72169 into main May 28, 2026
1 check passed
@SamTV12345 SamTV12345 deleted the fix/stale-workflow-syntax branch May 28, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant