Scroll to navigation

GCLI-ISSUES(1) General Commands Manual GCLI-ISSUES(1)

NAME

gcli issuesManage issues in various git forges

SYNOPSIS

gcli issues [-n n] [-a] [-s] [-A author] [-L label] [-M milestone] [-o owner -r repo] [search-query]

gcli issues -i issue [-o owner -r repo] actions...

gcli issues create [-o owner -r repo] [-y] [issue-title]

DESCRIPTION

Use gcli issues to search, list, create, edit or delete issues in repositories in various git(1) forges such as GitHub, GitLab and Gitea. Without any action specified, gcli issues will list issues in the given or autodetected repository.

OPTIONS

, --sorted
Reverse the output such that most recent items appear at the bottom.
, --owner owner
List issues in the repository of the given owner. This option can only be used in combination with -r.
, --repo repo
List issues in the given repository. This option can only be used in combination with -o.
List issues disregarding their state. This will list closed issues as well. Cannot be combined with actions. This does not affect the -n option.
, --author user
Only list issues authored by the given user.
, --label label
Filter issues by the given label. This option may only be specified once.
, --milestone milestone
Filter issues by the given milestone. This option may only be specified once.
, --count n
Fetch at least n issues. Setting n to -1 will fetch all issues. Default: 30. Note that on large repositories fetching all issues can take a considerable amount of time and may result in rate limiting by the respective API. See CAVEATS.
, --id issue
execute the given actions for the specified issue.

SUBCOMMANDS

Create a new issue in the given or autodetected repository. The editor will come up and ask you to enter an issue message.

When the issue title is omitted gcli will interactively prompt you for all the details to create an issue.

The following flags can be specified:

, --in owner/repo
Specify in which repository the issue is to be created.
, --yes
Do not ask for confirmation before creating the issue. Assume yes.

ACTIONS

actions... may be one or more of the following:

Display both a summary and the original post of the issue.
Print a list of comments under the issue.
Print a short summary of the issue.
Print the original post of the issue.
Close the issue.
Reopen a closed issue.
assignee
Assign the issue to the given assignee (user name).
[options]
The following options can be specified more than once:
add label
Add the given label to the issue.
remove label
Remove the given label from the issue.
id
Assign the issue to a milestone with the given id.
-d
Clear associated milestone of the given issue.
Alias for the comments action that prints the list of comments associated with the issue.
new-title
Change the title of the issue to new-title.
List bug attachments. This action is only available on Bugzilla.

EXAMPLES

Print a list of issues in the current project:

$ gcli issues

Search for issues containing “crash” in contour-terminal/contour on GitHub including closed issues:

$ gcli -t github issues -o contour-terminal -r contour -a crash

Report a new issue in the current project; interactively asking for details:

$ gcli issues create

Report a new issue titled “summary here” in the current project:

$ gcli issues create "summary here"

Print both a summary and comments of issue 1 in herrhotzenplotz/gcli:

$ gcli issues -o herrhotzenplotz -r gcli -i 1 status comments

Add the labels ‘foo’ and ‘bar’ to the issue with id 420:

$ gcli issues -i420 labels add foo add bar

List issues with the label “bug”:

$ gcli issues -L bug

SEE ALSO

git(1), gcli(1)

AUTHORS

Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de> and contributors.

CAVEATS

GitHub and Gitea treat Pull Requests as Issues. Due to the semantics of gcli issues those issues that are actually PRs are dropped from the output. In this case a note will be printed indicating how many issues were dropped. You can suppress this warning using the -q program option.

BUGS

GitHub only supports removing labels from issues one by one. If you still want to remove multiple issues with a single gcli call, you may do something like:

$ gcli issues -i42 \
        labels remove bug \
        labels remove foo

Please report bugs via E-Mail to ~herrhotzenplotz/gcli-discuss@lists.sr.ht.

Alternatively you can report them on any of the forges linked at https://herrhotzenplotz.de/gcli. However, the preferred and quickest method is to use the mailing list.

2024-May-25 gcli 2.3.0