mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
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:
@@ -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')]
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user