File: gcli-issues.1.in

package info (click to toggle)
gcli 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,096 kB
  • sloc: ansic: 19,013; makefile: 312; yacc: 261; sh: 142; lex: 53
file content (210 lines) | stat: -rw-r--r-- 5,404 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
.Dd @PACKAGE_DATE@
.Dt GCLI-ISSUES 1
.Os @PACKAGE_STRING@
.Sh NAME
.Nm gcli issues
.Nd Manage issues in various git forges
.Sh SYNOPSIS
.Nm
.Op Fl n Ar n
.Op Fl a
.Op Fl s
.Op Fl A Ar author
.Op Fl L Ar label
.Op Fl M Ar milestone
.Op Fl o Ar owner Fl r Ar repo
.Op Ar "search-query"
.Nm
.Fl i Ar issue
.Op Fl o Ar owner Fl r Ar repo
.Ar actions...
.Nm
.Cm create
.Op Fl o Ar owner Fl r Ar repo
.Op Fl y
.Op Ar issue-title
.Sh DESCRIPTION
Use
.Nm
to search, list, create, edit or delete issues in repositories in various
.Xr git 1
forges such as GitHub, GitLab and Gitea. Without any action specified,
.Nm
will list issues in the given or autodetected repository.
.Sh OPTIONS
.Bl -tag -width indent
.It Fl s , -sorted
Reverse the output such that most recent items appear at the bottom.
.It Fl o , -owner Ar owner
List issues in the repository of the given owner. This option can only
be used in combination with
.Fl r .
.It Fl r , -repo Ar repo
List issues in the given repository. This option can only be used in
combination with
.Fl o .
.It Fl a
List issues disregarding their state. This will list closed issues as
well. Cannot be combined with actions. This does not affect the
.Fl n
option.
.It Fl A , Fl -author Ar user
Only list issues authored by the given user.
.It Fl L , Fl -label Ar label
Filter issues by the given label. This option may only be specified once.
.It Fl M , Fl -milestone Ar milestone
Filter issues by the given milestone. This option may only be specified once.
.It Fl n , -count Ar n
Fetch at least
.Ar n
issues. Setting
.Ar 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
.Sx CAVEATS .
.It Fl i , -id Ar issue
execute the given
.Ar actions
for the specified
.Ar issue .
.El
.
.Sh SUBCOMMANDS
.Bl -tag -width indent
.It Cm create
Create a new issue in the given or autodetected repository. The
editor will come up and ask you to enter an issue message.
.Pp
When the issue title is omitted gcli will interactively prompt you
for all the details to create an issue.
.Pp
The following flags can be specified:
.Bl -tag -width indent
.It Fl i , -in Ar owner/repo
Specify in which repository the issue is to be created.
.It Fl y , -yes
Do not ask for confirmation before creating the issue. Assume yes.
.El
.El
.Sh ACTIONS
.Ar actions...
may be one or more of the following:
.Bl -tag -width "labels [options]"
.It Cm all
Display both a summary and the original post of the issue.
.It Cm comments
Print a list of comments under the issue.
.It Cm status
Print a short summary of the issue.
.It Cm op
Print the original post of the issue.
.It Cm close
Close the issue.
.It Cm reopen
Reopen a closed issue.
.It Cm assign Ar assignee
Assign the issue to the given
.Ar assignee
(user name).
.It Cm labels Op Ar options
The following options can be specified more than once:
.Bl -tag -width indent
.It add Ar label
Add the given label to the issue.
.It remove Ar label
Remove the given label from the issue.
.El
.It Cm milestone Ar id
Assign the issue to a milestone with the given
.Ar id .
.It Cm milestone Fl d
Clear associated milestone of the given issue.
.It Cm notes
Alias for the
.Cm comments
action that prints the list of comments associated with the issue.
.It Cm title Ar new-title
Change the title of the issue to
.Ar new-title .
.It Cm attachments
List bug attachments. This action is only available on Bugzilla.
.El
.Sh EXAMPLES
Print a list of issues in the current project:
.Bd -literal -offset indent
$ gcli issues
.Ed
.Pp
Search for issues containing
.Dq crash
in contour-terminal/contour on GitHub including closed issues:
.Bd -literal -offset indent
$ gcli -t github issues -o contour-terminal -r contour -a crash
.Ed
.Pp
Report a new issue in the current project; interactively asking for
details:
.Bd -literal -offset indent
$ gcli issues create
.Ed
.Pp
Report a new issue titled
.Dq summary here
in the current project:
.Bd -literal -offset indent
$ gcli issues create "summary here"
.Ed
.Pp
Print both a summary and comments of issue 1 in herrhotzenplotz/gcli:
.Bd -literal -offset indent
$ gcli issues -o herrhotzenplotz -r gcli -i 1 status comments
.Ed
.Pp
Add the labels
.Sq foo
and
.Sq bar
to the issue with id 420:
.Bd -literal -offset indent
$ gcli issues -i420 labels add foo add bar
.Ed
.Pp
List issues with the label
.Dq bug :
.Bd -literal -offset indent
$ gcli issues -L bug
.Ed
.Sh SEE ALSO
.Xr git 1 ,
.Xr gcli 1
.Sh AUTHORS
.An Nico Sonack aka. herrhotzenplotz Aq Mt nsonack@herrhotzenplotz.de
and contributors.
.Sh CAVEATS
GitHub and Gitea treat Pull Requests as Issues. Due to the semantics
of
.Nm
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
.Fl q
program option.
.Sh 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:
.
.Bd -literal -offset indent
$ gcli issues -i42 \\
        labels remove bug \\
        labels remove foo
.Ed
.Pp
Please report bugs via E-Mail to
.Mt @PACKAGE_BUGREPORT@ .
.Pp
Alternatively you can report them on any of the forges linked at
.Lk @PACKAGE_URL@ .
However, the preferred and quickest method is to use the mailing
list.