Skip to content

Commit aeeadd2

Browse files
ahwitzkaizensoze
authored andcommitted
Provides correct values for moveProjectsCard "position" parameter (octokit#474)
* Provides correct values for moveProjectsCard "position" parameter As per https://developer.github.com/v3/projects/cards/#move-a-project-card * Documentation changes for moveProjectsCard "position" parameter
1 parent 017e4f6 commit aeeadd2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

doc/apidoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31334,7 +31334,7 @@ github.projects.getRepoProjects({ ... });
3133431334
* @apiGroup projects
3133531335
*
3133631336
* @apiParam {String} id
31337-
* @apiParam {String} position Can be one of first, last, or after:<column-id>, where <column-id> is the id value of a column in the same project.
31337+
* @apiParam {String} position Can be one of top, bottom, or after:<column-id>, where <column-id> is the id value of a column in the same project.
3133831338
* @apiParam {String} [column_id] The id value of a column in the same project.
3133931339
* @apiExample {js} ex:
3134031340
github.projects.moveProjectCard({ ... });

lib/routes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3705,9 +3705,9 @@
37053705
"position": {
37063706
"type": "String",
37073707
"required": true,
3708-
"validation": "^(first|last|after:\\d)$",
3708+
"validation": "^(top|bottom|after:\\d)$",
37093709
"invalidmsg": "",
3710-
"description": "Can be one of first, last, or after:<column-id>, where <column-id> is the id value of a column in the same project."
3710+
"description": "Can be one of top, bottom, or after:<column-id>, where <column-id> is the id value of a column in the same project."
37113711
},
37123712
"column_id": {
37133713
"type": "String",

0 commit comments

Comments
 (0)