diff --git a/github/ProjectCard.py b/github/ProjectCard.py index 5335cd31..f09d1917 100644 --- a/github/ProjectCard.py +++ b/github/ProjectCard.py @@ -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, } diff --git a/tests/ReplayData/Project.testProjectCardMove.txt b/tests/ReplayData/Project.testProjectCardMove.txt index afbbcee2..bddeac8e 100644 --- a/tests/ReplayData/Project.testProjectCardMove.txt +++ b/tests/ReplayData/Project.testProjectCardMove.txt @@ -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')] {}