You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
: _Optional_**string** of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Only issues updated at or after this time are returned.
31
+
Name | Type | Description | Required? | Default
32
+
----|------|--------------|-----------|---------
33
+
`filter`|`string`| Indicates which sorts of issues to return. Can be one of:<br/>*`assigned`: Issues assigned to you<br/>*`created`: Issues created by you<br/>*`mentioned`: Issues mentioning you<br/>*`subscribed`: Issues you're subscribed to updates for<br/>*`all`: All issues the authenticated user can see, regardless of participation or creation| | `assigned`
34
+
`state`|`string`| Indicates the state of the issues to return. Can be either `open` or `closed`. | |`open`
35
+
`labels`|`string`| A list of comma separated label names. Example: `bug,ui,@high`| |
36
+
`sort`|`string`| What to sort results by. Can be either `created`, `updated`, `comments`. | |`created`
37
+
`direction`|`string`| The direction of the sort. Can be either `asc` or `desc`. | |`desc`
38
+
`since`|`string` | Only issues updated at or after this time are returned. A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.| |
53
39
54
40
### Response
55
41
@@ -62,37 +48,17 @@ since
62
48
63
49
### Parameters
64
50
65
-
milestone
66
-
: * _Integer_ Milestone number
67
-
*`none` for Issues with no Milestone.
68
-
*`*` for Issues with any Milestone.
69
-
70
-
state
71
-
: `open`, `closed`, default: `open`
72
-
73
-
assignee
74
-
: * _String_ User login
75
-
*`none` for Issues with no assigned User.
76
-
*`*` for Issues with any assigned User.
77
-
78
-
creator
79
-
: _String_ User login.
80
-
81
-
mentioned
82
-
: _String_ User login.
83
-
84
-
labels
85
-
: _String_ list of comma separated Label names. Example:
: _Optional_**String** of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Only issues updated at or after this time are returned.
51
+
Name | Type | Description | Required? | Default
52
+
----|------|--------------|-----------|---------
53
+
`filter`|`integer` or `string`| If an `integer` is passed, it should refer to a milestone number. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned. | | `*`
54
+
`state`|`string`| Indicates the state of the issues to return. Can be either `open` or `closed`. | |`open`
55
+
`assignee`|`string`| Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user.| | `*`
56
+
`creator`|`string`| The user that created the issue.| |
57
+
`mentioned`|`string`| A user that's mentioned in the issue. | |
58
+
`labels`|`string`| A list of comma separated label names. Example: `bug,ui,@high`| |
59
+
`sort`|`string`| What to sort results by. Can be either `created`, `updated`, `comments`. | |`created`
60
+
`direction`|`string`| The direction of the sort. Can be either `asc` or `desc`. | |`desc`
61
+
`since`|`string` | Only issues updated at or after this time are returned. A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.| |
96
62
97
63
### Response
98
64
@@ -114,30 +80,17 @@ Any user with pull access to a repository can create an issue.
114
80
115
81
POST /repos/:owner/:repo/issues
116
82
117
-
### Input
118
-
119
-
title
120
-
: _Required_**string**
121
-
122
-
body
123
-
: _Optional_**string**
124
-
125
-
assignee
126
-
: _Optional_**string** - Login for the user that this issue should be
127
-
assigned to. _NOTE: Only users with push access can set the assignee for new
128
-
issues. The assignee is silently dropped otherwise._
129
-
130
-
131
-
milestone
132
-
: _Optional_**number** - Milestone to associate this issue with. _NOTE: Only
133
-
users with push access can set the milestone for new issues. The milestone is
134
-
silently dropped otherwise._
83
+
### Parameters
135
84
85
+
Name | Type | Description | Required? | Default
86
+
----|------|--------------|-----------|---------
87
+
`title`|`string` | The title of the issue.|**YES**|
88
+
`body`|`string` | The contents of the issue.| |
89
+
`assignee`|`string` | Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise._| |
90
+
`milestone`|`number` | Milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._| |
91
+
`labels`|`array` of `strings` | Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._| |
136
92
137
-
labels
138
-
: _Optional_**array** of **strings** - Labels to associate with this
139
-
issue. _NOTE: Only users with push access can set labels for new issues. Labels are
140
-
silently dropped otherwise._
93
+
#### Example
141
94
142
95
<%= json \
143
96
:title => "Found a bug",
@@ -160,28 +113,19 @@ Issue owners and users with push access can edit an issue.
160
113
161
114
PATCH /repos/:owner/:repo/issues/:number
162
115
163
-
### Input
164
-
165
-
title
166
-
: _Optional_**string**
167
-
168
-
body
169
-
: _Optional_**string**
170
-
171
-
assignee
172
-
: _Optional_**string** - Login for the user that this issue should be
173
-
assigned to.
116
+
### Parameters
174
117
175
-
state
176
-
: _Optional_**string** - State of the issue: `open` or `closed`.
118
+
Name | Type | Description | Required? | Default
119
+
----|------|--------------|-----------|---------
120
+
`title`|`string` | The title of the issue.|**YES**|
121
+
`body`|`string` | The contents of the issue.| |
122
+
`assignee`|`string` | Login for the user that this issue should be assigned to.| |
123
+
`state`|`string` | State of the issue. Either `open` or `closed`.| |
124
+
`milestone`|`number` | Milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._| |
125
+
`labels`|`array` of `strings` | Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._| |
177
126
178
-
milestone
179
-
: _Optional_**number** - Milestone to associate this issue with.
180
127
181
-
labels
182
-
: _Optional_**array** of **strings** - Labels to associate with this
183
-
issue. Pass one or more Labels to _replace_ the set of Labels on this
184
-
Issue. Send an empty array (`[]`) to clear all Labels from the Issue.
0 commit comments