Skip to content

Commit

Permalink
fix remove assignees from issue assignees input
Browse files Browse the repository at this point in the history
Change assignees from request param to body json input.

resolves #431
  • Loading branch information
Joe Gallo authored and kaizensoze committed Oct 8, 2016
1 parent 0c0228d commit b898212
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/apidoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ github.issues.removeAllLabels({ ... });
* @apiParam {String} user
* @apiParam {String} repo
* @apiParam {Number} number
* @apiParam {Array} assignees Logins for the users that should be removed from the issue.
* @apiParam {Json} body JSON object that contains assignees array of logins for the users that should be removed from the issue.
* @apiExample {js} ex:
github.issues.removeAssigneesFromIssue({ ... });
*/
Expand Down
7 changes: 4 additions & 3 deletions lib/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2036,12 +2036,13 @@
"$user": null,
"$repo": null,
"$number": null,
"assignees": {
"type": "Array",
"body": {
"type": "Json",
"sendValueAsBody": true,
"required": true,
"validation": "",
"invalidmsg": "",
"description": "Logins for the users that should be removed from the issue."
"description": "JSON object that contains assignees array of logins for the users that should be removed from the issue."
}
},
"description": "Remove assignees from an issue."
Expand Down
2 changes: 1 addition & 1 deletion test/issuesTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ describe("[issues]", function() {
user: "String",
repo: "String",
number: "Number",
assignees: "Array"
body: "Json"
},
function(err, res) {
Assert.equal(err, null);
Expand Down

0 comments on commit b898212

Please sign in to comment.