Repository navigation
fix(cli): --annotate and --annotate-block refuse a type they do not know - #184
Merged
Merged
Conversation
Merged
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.
Behaviour change.
--annotateand--annotate-blocknow refuse a type word they do not know. Before this, any other word (bogus, a typo likelooks-good,Comment, an empty string) quietly saved a comment. An agent that calls the tool with a typo got the wrong kind of note and no sign of it.comment,looks_good,delete. No type still means a comment.approvestill meanslooks_good. It has been accepted since the rebuild, so a caller may pass it. It stays out of the usage text and README:approveis also the gated-review action (A), and a second documented spelling for "looks good" would only add confusion.unknown type "bogus": use comment, looks_good or deleteparse_kindis the one place both commands read the type, so the change is in one function.Callers checked: nothing in the repo passes another word. The tests pass
commentor no type,scripts/smoke-musl.shpasses no type, and the herdr, rex, hc and pi launchers do not call--annotateor--annotate-block.Tests (
tests/annotate_block.rs, through the real binary and a private data dir):bogus,looks-good,Commentand""fail for both commands with that wording and leave no annotations.approvestill saves a looks-good note for both.