fix param name of projectcard's move function (#1451)

* fix param name of projectcard's move function

* fix test failure
This commit is contained in:
chloe jungah kim
2020-04-16 21:38:19 +10:00
committed by GitHub
parent 83bef0f7b2
commit bafc4efc76
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ class ProjectCard(github.GithubObject.CompletableGithubObject):
), column
post_parameters = {
"position": position,
"column": column.id
"column_id": column.id
if isinstance(column, github.ProjectColumn.ProjectColumn)
else column,
}
@@ -37,7 +37,7 @@ api.github.com
None
/projects/columns/cards/11780055/moves
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'Content-Type': 'application/json', 'User-Agent': 'PyGithub/Python'}
{"column": 3138832, "position": "top"}
{"column_id": 3138832, "position": "top"}
201
[('status', '201 Created'), ('x-ratelimit-remaining', '4982'), ('content-length', '2'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('x-ratelimit-limit', '5000'), ('etag', '"f79a53550c9b90814f0be2b54ab2cc8e"'), ('date', 'Fri, 17 Jan 2020 02:03:18 GMT'), ('content-type', 'application/json; charset=utf-8')]
{}
@@ -48,7 +48,7 @@ api.github.com
None
/projects/columns/cards/11780055/moves
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'Content-Type': 'application/json', 'User-Agent': 'PyGithub/Python'}
{"column": 3138831, "position": "bottom"}
{"column_id": 3138831, "position": "bottom"}
201
[('status', '201 Created'), ('x-ratelimit-remaining', '4982'), ('content-length', '2'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('x-ratelimit-limit', '5000'), ('etag', '"e87658ab0c9b90814f0be2b54ab2cc8e"'), ('date', 'Fri, 17 Jan 2020 02:03:24 GMT'), ('content-type', 'application/json; charset=utf-8')]
{}