Describe the bug
If you're using gh project item-edit to edit the title or body of a draft issue, --title without --body will clear the body, and --body without --title causes an error.
Affected version
gh version 2.68.1 (2025-03-06)
Steps to reproduce the behavior
- Type
gh project item-edit --project-id <PROJECT_ID> --id <DRAFT_ISSUE_ID> --body foobar
- See error: "GraphQL: Title can't be blank (updateProjectV2DraftIssue)"
Expected vs actual behavior
It's expected that the two options should be usable independently, but that's not the actual behavior at the moment.
Describe the bug
If you're using
gh project item-editto edit the title or body of a draft issue,--titlewithout--bodywill clear the body, and--bodywithout--titlecauses an error.Affected version
gh version 2.68.1 (2025-03-06)
Steps to reproduce the behavior
gh project item-edit --project-id <PROJECT_ID> --id <DRAFT_ISSUE_ID> --body foobarExpected vs actual behavior
It's expected that the two options should be usable independently, but that's not the actual behavior at the moment.