create
command lets you create an issue or to add a comment to an existing issue.id
- Provide the ID of the issue; Must be a number with not more than 16 characters in length. For example, if the ID is 10
, then the issue reference will be refs/heads/issues/10
. If an issue exists with the matching ID, a comment will be added to the existing issue. -t, --title
- The title of the issue. Required only when creating a new issue. If unset, a prompt will be started to ask for it.-b, --body
- The body of the issue or comment. If unset, a prompt will be started to ask for it.-l, --labels
- Add up to 10 labels to the issue. -a, --assignees
- Add up to 10 assignees to the issue.-e, --reactions
- Provide up to 10 reactions to a comment. Supports Unicode v13.0 emoji list. Note: emoji short names with spaces must replace them with underscore (_) character. For example, upside-down face
becomes upside-down_face
. -r, --reply
- Specify the hash of a comment in an existing issue you wish to respond to. If provided, reactions will be addressed to the target comment.-c, --close
- Close an issue. The user must have update
rights to successfully push a closed issue reference.-o, --reopen
- Reopen a closed issue. The user must have update
rights to successfully push the reopened issue reference.--editor
- Specify an editor program to use to write the body instead of a prompt or -b
flag.-u, --use-editor
- Similar to --editor
but uses default git editor set in core.editor
.--new
- While checked into an issue branch, force the command to create a new issue instead of adding a comment to the checked-out issue. Note: If the checked out branch is dirty, it will fail without using --force
to ignore unsaved changes. --no-body
- Prevent the command from starting a prompt to ask for the body. --force
- Ignore unsaved changes to the currently checked out branch. Unsaved updates will be lost. --title
and --body
flags.