gh discussion edit {<number> | <discussion-url>} [flags]
Edit a GitHub Discussion.
Without flags, the command runs interactively when connected to a terminal. Use flags to update specific fields non-interactively.
--add-label <name>-b,
--body <string>-F,
--body-file <string>-c,
--category <string>--remove-label <name>-R,
--repo <[HOST/]OWNER/REPO>-t,
--title <string># Edit interactively
$ gh discussion edit 123
# Update title, body, and category
$ gh discussion edit 123 --title "Updated title" --body "Updated body" --category "Ideas"
# Update body from a file
$ gh discussion edit 123 --body-file body.md
# Add and remove labels
$ gh discussion edit 123 --add-label "bug,help wanted" --remove-label "stale"