Conversation
📝 WalkthroughWalkthroughAdds documentation for new diff-related configuration and CLI flags: a Pre-merge checks❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Knowledge base: Disabled due to ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🔇 Additional comments (1)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
README.md (1)
61-75: Clarify diffConfig label constraints in the docsThe example and flags look good, but now that
diffConfig.baseLabel/headLabelmust refer to labels defined undersources, it would help to explicitly say so here. A short note like “baseLabel/headLabelmust match one of thesources[].labelvalues” would make the new validation behavior clearer to users configuring diffs.Also applies to: 100-103
internal/domain/config_test.go (1)
11-18: Nice coverage of diffConfig parsing; slight test cleanup possibleThe updated tests exercise the new label-aware parsing well (including whitespace and incorrect-label cases), which should keep regressions in check. You could simplify the setup a bit with a literal:
sourceLabels := map[string]struct{}{ "base": {}, "head": {}, }Functionally equivalent, just a bit tighter.
Also applies to: 28-49, 64-85, 87-101
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
⛔ Files ignored due to path filters (1)
internal/domain/__snapshots__/config_test.snapis excluded by!**/*.snap
📒 Files selected for processing (4)
README.md(2 hunks)internal/domain/config.go(1 hunks)internal/domain/config_test.go(5 hunks)internal/domain/validation.go(2 hunks)
🔇 Additional comments (1)
internal/domain/config.go (1)
91-112: Label-awarerawDiffConfig.parseimplementation looks correctThe updated
parsecorrectly:
- trims
BaseLabel/HeadLabel,- enforces non-emptiness, and
- verifies each against the provided
labelsset,while preserving the existing
cmdtrimming/validation behavior. WithsourceLabelspopulated using trimmed labels (as suggested invalidation.go), this should give clear and accurate errors whenever diffConfig refers to undefined labels.Also applies to: 114-138
No description provided.