fix(ci): quote labeler keys containing colons#13
Conversation
YAML keys like app: portal were parsed as invalid mappings, causing ultracite lint to fail in Portal CI. Quote these keys so label matching remains unchanged while restoring valid YAML syntax. Made-with: Cursor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideQuotes YAML mapping keys containing colons in .github/labeler.yml so the labeler config parses correctly while preserving existing label patterns and behavior. Sequence diagram for CI linting of labeler configurationsequenceDiagram
actor Dev
participant GitHub
participant Portal_CI
participant Lint_Job
participant Ultracite
participant Labeler_Config
Dev->>GitHub: Open or update pull_request
GitHub->>Portal_CI: Trigger Portal CI workflow
Portal_CI->>Lint_Job: Start pnpm check
Lint_Job->>Ultracite: Run ultracite check .github/labeler.yml
Ultracite->>Labeler_Config: Parse labeler.yml (quoted keys with colons)
Labeler_Config-->>Ultracite: YAML parsed successfully
Ultracite-->>Lint_Job: Report success
Lint_Job-->>Portal_CI: Lint job passes
Portal_CI-->>GitHub: Report status success to PR
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
📝 WalkthroughWalkthroughThis pull request updates Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
There was a problem hiding this comment.
The YAML syntax fix is correct and addresses the parse errors by properly quoting label keys containing colons. The changes preserve existing label matching patterns and behavior while making the file valid YAML. No blocking issues found.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
Summary
.github/labeler.ymlthat contain colons (for exampleapp: portal) so the file is valid YAML.Portal CIlint (pnpm check/ultracite check) which was failing on YAML parse errors.Test plan
pnpm exec ultracite check .github/labeler.ymllocally.Portal CI / Lintpasses on this PR.Made with Cursor
Summary by Sourcery
Bug Fixes:
Summary by cubic
Quote label keys containing colons in
.github/labeler.ymlto fix YAML parsing and stop lint failures in Portal CI (pnpm check/ultracite). Label behavior is unchanged; this is a syntax-only fix.Written for commit c28ac0c. Summary will update on new commits.