gh-issue-create

Create GitHub issues on a repository from the command-line.

TLDR

Create a new issue against the current repository interactively

$ gh issue create
copy


Create a new issue with the bug label interactively
$ gh issue create --label "[bug]"
copy


Create a new issue interactively and assign it to the specified users
$ gh issue create --assignee [user1,user2,...]
copy


Create a new issue with a title, body and assign it to the current user
$ gh issue create --title "[title]" --body "[body]" --assignee "[@me]"
copy


Create a new issue interactively, reading the body text from a file
$ gh issue create --body-file [path/to/file]
copy


Create a new issue in the default web browser
$ gh issue create --web
copy


Display the help
$ gh issue create --help
copy

SYNOPSIS

gh issue create [flags]

OPTIONS

-a, --assignee <login>

Assign people by their login. Use "@me" to self-assign.

-b, --body <string>

Supply a body. Will prompt for one otherwise.

-F, --body-file <file>

Read body text from file (use "-" to read from standard input)

-l, --label <name>

Add labels by name

-m, --milestone <name>

Add the issue to a milestone by name

-p, --project <name>

Add the issue to projects by name

--recover <string>

Recover input from a failed run of create

-t, --title <string>

Supply a title. Will prompt for one otherwise.

-w, --web

Open the browser to create an issue

OPTIONS INHERITED FROM PARENT COMMANDS

-R, --repo <[HOST/]OWNER/REPO>

Select another repository using the [HOST/]OWNER/REPO format

EXAMPLE

$ gh issue create --title "I found a bug" --body "Nothing works"
$ gh issue create --label "bug,help wanted"
$ gh issue create --label bug --label "help wanted"
$ gh issue create --assignee monalisa,hubot
$ gh issue create --assignee "@me"
$ gh issue create --project "Roadmap"

SEE ALSO

gh-issue(1)

Copied to clipboard