feat(issue-update): add --body-file to lc issue update - #227
Merged
Conversation
Read the description from a file (- for stdin) instead of passing it as a --description shell argument. Mutually exclusive with --description; --comment and --reason are unaffected. Wires the existing validate_body_file_exclusion/3 and resolve_body_from_file/2 helpers into issue_update/1, matching how issue create and issue comment already use them. Adds CLI tests: file read, stdin read, mutual-exclusion error, and unreadable-file error. Closes EXT-36
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Sep 5, 2026
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.
Summary
--body-file PATHoption tolc issue update, sourcing the issue description from a file (-for stdin) instead of requiring it as a--descriptionshell argument.--description; errors with exit 22 if both are given.--commentand--reasonare unaffected.validate_body_file_exclusion/3andresolve_body_from_file/2helpers intoissue_update/1, consistent withissue createandissue comment.Closes https://linear.app/the-rubyists/issue/EXT-36
Test plan
--body-file <path>reads description from file and posts it viaissueUpdatemutation--body-file -reads description from stdin--descriptionand--body-filetogether exits 22 with "give --description or --body-file, not both"--body-filepath surfaces an error without making a GraphQL callmix credo --strictreports no issues