Only set commit-lockfile-summary when commit-msg is defined#212
Only set commit-lockfile-summary when commit-msg is defined#212MattSturgeon wants to merge 1 commit intoDeterminateSystems:mainfrom
Conversation
WalkthroughThe PR removes the default commit message in action.yml and updates makeNixCommandArgs to only include commit-lockfile-summary options when a non-empty commit message is provided. Tests are added to cover the empty commit message case. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Caller
participant makeNixCommandArgs
Caller->>makeNixCommandArgs: nixOptions, flakeInputs, commitMessage
alt commitMessage is non-empty
makeNixCommandArgs->>makeNixCommandArgs: Add ["--option","commit-lockfile-summary", commitMessage]
else commitMessage is empty
makeNixCommandArgs->>makeNixCommandArgs: Omit commit-lockfile-summary option
end
makeNixCommandArgs-->>Caller: ["flake","update","--commit-lock-file", ...flags]
note over Caller: Downstream nix uses configured/default summary when not overridden
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (1)src/nix.ts (1)
🔇 Additional comments (3)
✨ Finishing Touches
🧪 Generate unit tests
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 |
Description
Fixes #210
Only pass
--option commit-lockfile-summary commitMessagetonix flake updatewhen thecommit-msgis defined; i.e. non-empty.Changed the input's default to
""to allow it to be emptyChecklist
Summary by CodeRabbit
New Features
Tests