Add --content and --content-file to project update - #278
Merged
Conversation
A project's long-form overview body could be set at creation via project create --content / --content-file, but never changed afterwards: project update only exposed --description, which is Linear's separate 255-character summary field. Updating the body meant hand-writing a projectUpdate mutation through linear api and reading the markdown from a file yourself. project update now takes the same two flags as create, spelled and worded identically, and resolves them through create's existing helper so the mutual-exclusion and file-read behavior cannot drift between the two commands. Content and description are independent API fields and may be set together. The no-options guard uses null checks so an empty content file still counts as an explicit value to forward; Linear currently keeps the existing body when sent an empty string, so this is not a way to clear it, and cliffy rejects --content "" outright. No short aliases: -f already means --description-file on this command and create has none for content either. Claude-Session: https://claude.ai/code/session_01A9qEGri4p2HZMQSuYsBmub
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.
project updatenow accepts--content <markdown>and--content-file <path>to replace a project's long-form overview body, matching the flagsproject createalready had. Until now the only way to change the body after creation was a hand-writtenprojectUpdatemutation throughlinear api.project create; resolved through create's existing helper so mutual exclusion and file-read errors cannot drift between the two commands.--contentand--descriptionare independent API fields and may be combined (description is Linear's short 255-char summary; content is the markdown body).-falready means--description-fileon this command, and create has none for content either.https://claude.ai/code/session_01A9qEGri4p2HZMQSuYsBmub