Skip to content

Commit 774af41

Browse files
committed
Update 1.1.3
1 parent 500f839 commit 774af41

2 files changed

Lines changed: 101 additions & 10 deletions

File tree

README.md

Lines changed: 100 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ gitlab me
4646
- showGroupProjects
4747
- showGroupMembers
4848
- issues
49+
- createIssue
50+
- editIssue
4951
- showIssue
5052
- keys
5153
- getKey
@@ -80,23 +82,111 @@ gitlab me
8082
- showUser
8183
- session
8284

83-
Options Usage
85+
Issues Usage
8486
=============
8587
```
86-
gitlab projectIssues --help
88+
gitlab issues --help
89+
Usage: issues [options]
8790
88-
Usage: projectIssues [options] <projectId>
89-
90-
Get retrive issue of a given project.
91+
Get all issues created by authenticated user. This function takes pagination parameters page and per_page to restrict the list of issues.
9192
9293
Options:
9394
9495
-h, --help output usage information
95-
-e, --per_page [per_page] The limit of list.
96-
-p, --page [page] The offset of list.
96+
-s, --state [state] (optional) - Return all issues or just those that are opened or closed
97+
-l, --labels [labels] (optional) - Comma-separated list of label names
98+
-o, --order_by [order_by] (optional) - Return requests ordered by created_at or updated_at fields. Default is created_at
99+
-d, --sort [sort] (optional) - Return requests sorted in asc or desc order. Default is desc
100+
-e, --per_page [per_page] (optional) - The limit of list.
101+
-p, --page [page] (optional) - The offset of list.
102+
103+
gitlab createIssue --help
104+
Usage: createIssue [options] <projectId>
105+
106+
Creates a new project issue.If the operation is successful, 200 and the newly created issue is returned. If an error occurs, an error number and a message explaining the reason is returned.
107+
108+
Options:
109+
110+
-h, --help output usage information
111+
-t, --title <title> (required) - The title of an issue.
112+
-d, --description [desc] (optional) - The description of an issue.
113+
-a, --assignee_id [assignee_id] (optional) - The ID of a user to assign issue.
114+
-m, --milestone_id [milestone_id] (optional) - The ID of a milestone to assign issue.
115+
-l, --labels [labels] (optional) - Comma-separated label names for an issue.
116+
117+
gitlab createIssue 12 -t test -a 9
118+
{
119+
"assignee": {
120+
"avatar_url": "http://gitlab.baidao.com//uploads/user/avatar/9/764b89699bcc946e4239b04f28002ce9.jpeg",
121+
"id": 9,
122+
"name": "Cao Jun",
123+
"state": "active",
124+
"username": "mdsb100"
125+
},
126+
"author": {
127+
"avatar_url": "http://gitlab.baidao.com//uploads/user/avatar/9/764b89699bcc946e4239b04f28002ce9.jpeg",
128+
"id": 9,
129+
"name": "Cao Jun",
130+
"state": "active",
131+
"username": "mdsb100"
132+
},
133+
"created_at": "2015-02-10T03:53:53.341Z",
134+
"description": null,
135+
"id": 807,
136+
"iid": 7,
137+
"labels": [
138+
],
139+
"milestone": null,
140+
"project_id": 12,
141+
"state": "opened",
142+
"title": "test",
143+
"updated_at": "2015-02-10T03:53:53.341Z"
144+
}
97145
98146
99-
gitlab projectIssues 10 -e 100 -p 1
147+
gitlab editIssue --help
148+
Usage: editIssue [options] <projectId> <issueId>
149+
150+
Updates an existing project issue. This function is also used to mark an issue as closed.If the operation is successful, 200 and the updated issue is returned. If an error occurs, an error number and a message explaining the reason is returned.
151+
152+
Options:
153+
154+
-h, --help output usage information
155+
-t, --title <title> (required) - The title of an issue.
156+
-d, --description [desc] (optional) - The description of an issue.
157+
-a, --assignee_id [assignee_id] (optional) - The ID of a user to assign issue.
158+
-m, --milestone_id [milestone_id] (optional) - The ID of a milestone to assign issue.
159+
-l, --labels [labels] (optional) - Comma-separated label names for an issue.
160+
-s, --state_event [state_event] (optional) - The state event of an issue ('close' to close issue and 'reopen' to reopen it).
161+
162+
gitlab editIssue 12 807 -t test_it -d totest
163+
{
164+
"assignee": {
165+
"avatar_url": "http://gitlab.baidao.com//uploads/user/avatar/9/764b89699bcc946e4239b04f28002ce9.jpeg",
166+
"id": 9,
167+
"name": "Cao Jun",
168+
"state": "active",
169+
"username": "mdsb100"
170+
},
171+
"author": {
172+
"avatar_url": "http://gitlab.baidao.com//uploads/user/avatar/9/764b89699bcc946e4239b04f28002ce9.jpeg",
173+
"id": 9,
174+
"name": "Cao Jun",
175+
"state": "active",
176+
"username": "mdsb100"
177+
},
178+
"created_at": "2015-02-10T03:53:53.341Z",
179+
"description": "totest",
180+
"id": 807,
181+
"iid": 7,
182+
"labels": [
183+
],
184+
"milestone": null,
185+
"project_id": 12,
186+
"state": "opened",
187+
"title": "test_it",
188+
"updated_at": "2015-02-10T04:03:35.287Z"
189+
}
100190
101191
```
102192

@@ -117,7 +207,8 @@ MIT
117207

118208
Changelog
119209
------------
120-
210+
1.1.3(2015.2.10)
211+
- Modify command of issues
121212
1.1.2(2015.1.14)
122213
- Add a map file.
123214
- Refactor: Useinig a map to create commands.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cli-gitlab",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "GitLab CLI library.",
55
"main": "bin/refine.js",
66
"directories": {

0 commit comments

Comments
 (0)