Add support for editing project cards (#1418)

* Add edit() to ProjectCard

* Add unit tests of ProjectCard.edit
This commit is contained in:
Jody McIntyre
2020-03-08 14:24:35 +11:00
committed by GitHub
parent 96494965ee
commit 425280cee7
5 changed files with 178 additions and 0 deletions
+26
View File
@@ -172,6 +172,32 @@ class ProjectCard(github.GithubObject.CompletableGithubObject):
)
return status == 204
def edit(
self, note=github.GithubObject.NotSet, archived=github.GithubObject.NotSet
):
"""
:calls: `PATCH /projects/columns/cards/:card_id <http://developer.github.com/v3/projects/cards>`_
:param note: string
:param archived: bool
:rtype: None
"""
assert note is github.GithubObject.NotSet or isinstance(note, str), note
assert archived is github.GithubObject.NotSet or isinstance(
archived, bool
), archived
patch_parameters = dict()
if note is not github.GithubObject.NotSet:
patch_parameters["note"] = note
if archived is not github.GithubObject.NotSet:
patch_parameters["archived"] = archived
headers, data = self._requester.requestJsonAndCheck(
"PATCH",
self.url,
input=patch_parameters,
headers={"Accept": Consts.mediaTypeProjectsPreview},
)
self._useAttributes(data)
def _initAttributes(self):
self._archived = github.GithubObject.NotSet
self._column_url = github.GithubObject.NotSet
+20
View File
@@ -187,3 +187,23 @@ class Project(Framework.TestCase):
issue = self.repo.create_issue(title="Issue created by PyGithub")
card2 = column.create_card(content_id=issue.id, content_type="Issue")
self.assertEqual(card2.id, 16039106)
def testEditCardWithoutParameters(self):
proj = self.g.get_project(4015343)
col = proj.get_columns()[0]
card = col.create_card(note="Project Card")
card.edit()
def testEditCardNote(self):
proj = self.g.get_project(4015343)
col = proj.get_columns()[0]
card = col.create_card(note="Project Card")
card.edit(note="Edited Card")
self.assertEqual(card.note, "Edited Card")
def testEditCardArchived(self):
proj = self.g.get_project(4015343)
col = proj.get_columns()[0]
card = col.create_card(note="Project Card")
card.edit(archived=True)
self.assertEqual(card.archived, True)
@@ -0,0 +1,44 @@
https
GET
api.github.com
None
/projects/4015343
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:46 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4936'), ('X-RateLimit-Reset', '1583518122'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"8f94dd9e16bb76692ea38a2f0b45d4be"'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0B0:799D:1085EC5:1F7CF6A:5E62857E')]
{"owner_url":"https://api.github.com/repos/jodytest1511/PyGithub","url":"https://api.github.com/projects/4015343","html_url":"https://github.com/jodytest1511/PyGithub/projects/15","columns_url":"https://api.github.com/projects/4015343/columns","id":4015343,"node_id":"MDc6UHJvamVjdDQwMTUzNDM=","name":"Project created by PyGithub","body":"Project Body","number":15,"state":"open","creator":{"login":"jodytest1511","id":61476392,"node_id":"MDQ6VXNlcjYxNDc2Mzky","avatar_url":"https://avatars1.githubusercontent.com/u/61476392?v=4","gravatar_id":"","url":"https://api.github.com/users/jodytest1511","html_url":"https://github.com/jodytest1511","followers_url":"https://api.github.com/users/jodytest1511/followers","following_url":"https://api.github.com/users/jodytest1511/following{/other_user}","gists_url":"https://api.github.com/users/jodytest1511/gists{/gist_id}","starred_url":"https://api.github.com/users/jodytest1511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodytest1511/subscriptions","organizations_url":"https://api.github.com/users/jodytest1511/orgs","repos_url":"https://api.github.com/users/jodytest1511/repos","events_url":"https://api.github.com/users/jodytest1511/events{/privacy}","received_events_url":"https://api.github.com/users/jodytest1511/received_events","type":"User","site_admin":false},"created_at":"2020-02-25T21:03:35Z","updated_at":"2020-03-06T17:16:45Z"}
https
GET
api.github.com
None
/projects/4015343/columns
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:46 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4935'), ('X-RateLimit-Reset', '1583518122'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"e37a6d5dc4f5e1482a017eba0d558ddc"'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0B1:1DD9:14FD6F:33AAA9:5E62857E')]
[{"url":"https://api.github.com/projects/columns/8125057","project_url":"https://api.github.com/projects/4015343","cards_url":"https://api.github.com/projects/columns/8125057/cards","id":8125057,"node_id":"MDEzOlByb2plY3RDb2x1bW44MTI1MDU3","name":"Project Column created by PyGithub","created_at":"2020-02-25T21:03:36Z","updated_at":"2020-03-06T17:16:45Z"}]
https
POST
api.github.com
None
/projects/columns/8125057/cards
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"note": "Project Card"}
201
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:47 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '1320'), ('Status', '201 Created'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4934'), ('X-RateLimit-Reset', '1583518123'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', '"be6599041bcad6ef41f7d01246c09360"'), ('Location', 'https://api.github.com/projects/columns/cards/34203320'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-GitHub-Request-Id', 'D0B2:7CE4:100EC96:1EF4987:5E62857E')]
{"url":"https://api.github.com/projects/columns/cards/34203320","project_url":"https://api.github.com/projects/4015343","id":34203320,"node_id":"MDExOlByb2plY3RDYXJkMzQyMDMzMjA=","note":"Project Card","archived":false,"creator":{"login":"jodytest1511","id":61476392,"node_id":"MDQ6VXNlcjYxNDc2Mzky","avatar_url":"https://avatars1.githubusercontent.com/u/61476392?v=4","gravatar_id":"","url":"https://api.github.com/users/jodytest1511","html_url":"https://github.com/jodytest1511","followers_url":"https://api.github.com/users/jodytest1511/followers","following_url":"https://api.github.com/users/jodytest1511/following{/other_user}","gists_url":"https://api.github.com/users/jodytest1511/gists{/gist_id}","starred_url":"https://api.github.com/users/jodytest1511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodytest1511/subscriptions","organizations_url":"https://api.github.com/users/jodytest1511/orgs","repos_url":"https://api.github.com/users/jodytest1511/repos","events_url":"https://api.github.com/users/jodytest1511/events{/privacy}","received_events_url":"https://api.github.com/users/jodytest1511/received_events","type":"User","site_admin":false},"created_at":"2020-03-06T17:16:47Z","updated_at":"2020-03-06T17:16:47Z","column_url":"https://api.github.com/projects/columns/8125057"}
https
PATCH
api.github.com
None
/projects/columns/cards/34203320
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"archived": true}
200
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:47 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4933'), ('X-RateLimit-Reset', '1583518122'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"9f746e487a12026e026bf66c1406e5be"'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0B3:662E:9CE60:14A7DF:5E62857F')]
{"url":"https://api.github.com/projects/columns/cards/34203320","project_url":"https://api.github.com/projects/4015343","id":34203320,"node_id":"MDExOlByb2plY3RDYXJkMzQyMDMzMjA=","note":"Project Card","archived":true,"creator":{"login":"jodytest1511","id":61476392,"node_id":"MDQ6VXNlcjYxNDc2Mzky","avatar_url":"https://avatars1.githubusercontent.com/u/61476392?v=4","gravatar_id":"","url":"https://api.github.com/users/jodytest1511","html_url":"https://github.com/jodytest1511","followers_url":"https://api.github.com/users/jodytest1511/followers","following_url":"https://api.github.com/users/jodytest1511/following{/other_user}","gists_url":"https://api.github.com/users/jodytest1511/gists{/gist_id}","starred_url":"https://api.github.com/users/jodytest1511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodytest1511/subscriptions","organizations_url":"https://api.github.com/users/jodytest1511/orgs","repos_url":"https://api.github.com/users/jodytest1511/repos","events_url":"https://api.github.com/users/jodytest1511/events{/privacy}","received_events_url":"https://api.github.com/users/jodytest1511/received_events","type":"User","site_admin":false},"created_at":"2020-03-06T17:16:47Z","updated_at":"2020-03-06T17:16:47Z","column_url":"https://api.github.com/projects/columns/8125057"}
@@ -0,0 +1,44 @@
https
GET
api.github.com
None
/projects/4015343
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:44 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4942'), ('X-RateLimit-Reset', '1583518122'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"7fb19c8d8c7f42354001b9841118f32a"'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0AA:55E9:8DB5CC:15AA889:5E62857C')]
{"owner_url":"https://api.github.com/repos/jodytest1511/PyGithub","url":"https://api.github.com/projects/4015343","html_url":"https://github.com/jodytest1511/PyGithub/projects/15","columns_url":"https://api.github.com/projects/4015343/columns","id":4015343,"node_id":"MDc6UHJvamVjdDQwMTUzNDM=","name":"Project created by PyGithub","body":"Project Body","number":15,"state":"open","creator":{"login":"jodytest1511","id":61476392,"node_id":"MDQ6VXNlcjYxNDc2Mzky","avatar_url":"https://avatars1.githubusercontent.com/u/61476392?v=4","gravatar_id":"","url":"https://api.github.com/users/jodytest1511","html_url":"https://github.com/jodytest1511","followers_url":"https://api.github.com/users/jodytest1511/followers","following_url":"https://api.github.com/users/jodytest1511/following{/other_user}","gists_url":"https://api.github.com/users/jodytest1511/gists{/gist_id}","starred_url":"https://api.github.com/users/jodytest1511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodytest1511/subscriptions","organizations_url":"https://api.github.com/users/jodytest1511/orgs","repos_url":"https://api.github.com/users/jodytest1511/repos","events_url":"https://api.github.com/users/jodytest1511/events{/privacy}","received_events_url":"https://api.github.com/users/jodytest1511/received_events","type":"User","site_admin":false},"created_at":"2020-02-25T21:03:35Z","updated_at":"2020-03-06T17:16:17Z"}
https
GET
api.github.com
None
/projects/4015343/columns
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:44 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4941'), ('X-RateLimit-Reset', '1583518122'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"971e983ebf82aba488ebf352c942ee55"'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0AB:442F:10F905D:1FA33DB:5E62857C')]
[{"url":"https://api.github.com/projects/columns/8125057","project_url":"https://api.github.com/projects/4015343","cards_url":"https://api.github.com/projects/columns/8125057/cards","id":8125057,"node_id":"MDEzOlByb2plY3RDb2x1bW44MTI1MDU3","name":"Project Column created by PyGithub","created_at":"2020-02-25T21:03:36Z","updated_at":"2020-03-06T17:16:17Z"}]
https
POST
api.github.com
None
/projects/columns/8125057/cards
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"note": "Project Card"}
201
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:45 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '1320'), ('Status', '201 Created'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4940'), ('X-RateLimit-Reset', '1583518123'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', '"3f1e24b80d4263b328a361190ba12141"'), ('Location', 'https://api.github.com/projects/columns/cards/34203318'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-GitHub-Request-Id', 'D0AC:1F1A:8BC235:157BF6E:5E62857C')]
{"url":"https://api.github.com/projects/columns/cards/34203318","project_url":"https://api.github.com/projects/4015343","id":34203318,"node_id":"MDExOlByb2plY3RDYXJkMzQyMDMzMTg=","note":"Project Card","archived":false,"creator":{"login":"jodytest1511","id":61476392,"node_id":"MDQ6VXNlcjYxNDc2Mzky","avatar_url":"https://avatars1.githubusercontent.com/u/61476392?v=4","gravatar_id":"","url":"https://api.github.com/users/jodytest1511","html_url":"https://github.com/jodytest1511","followers_url":"https://api.github.com/users/jodytest1511/followers","following_url":"https://api.github.com/users/jodytest1511/following{/other_user}","gists_url":"https://api.github.com/users/jodytest1511/gists{/gist_id}","starred_url":"https://api.github.com/users/jodytest1511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodytest1511/subscriptions","organizations_url":"https://api.github.com/users/jodytest1511/orgs","repos_url":"https://api.github.com/users/jodytest1511/repos","events_url":"https://api.github.com/users/jodytest1511/events{/privacy}","received_events_url":"https://api.github.com/users/jodytest1511/received_events","type":"User","site_admin":false},"created_at":"2020-03-06T17:16:44Z","updated_at":"2020-03-06T17:16:44Z","column_url":"https://api.github.com/projects/columns/8125057"}
https
PATCH
api.github.com
None
/projects/columns/cards/34203318
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"note": "Edited Card"}
200
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:45 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4939'), ('X-RateLimit-Reset', '1583518122'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"ddb2330f5528743a1526588a4d12bf7a"'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0AD:55DE:E5A53:1EC84D:5E62857D')]
{"url":"https://api.github.com/projects/columns/cards/34203318","project_url":"https://api.github.com/projects/4015343","id":34203318,"node_id":"MDExOlByb2plY3RDYXJkMzQyMDMzMTg=","note":"Edited Card","archived":false,"creator":{"login":"jodytest1511","id":61476392,"node_id":"MDQ6VXNlcjYxNDc2Mzky","avatar_url":"https://avatars1.githubusercontent.com/u/61476392?v=4","gravatar_id":"","url":"https://api.github.com/users/jodytest1511","html_url":"https://github.com/jodytest1511","followers_url":"https://api.github.com/users/jodytest1511/followers","following_url":"https://api.github.com/users/jodytest1511/following{/other_user}","gists_url":"https://api.github.com/users/jodytest1511/gists{/gist_id}","starred_url":"https://api.github.com/users/jodytest1511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodytest1511/subscriptions","organizations_url":"https://api.github.com/users/jodytest1511/orgs","repos_url":"https://api.github.com/users/jodytest1511/repos","events_url":"https://api.github.com/users/jodytest1511/events{/privacy}","received_events_url":"https://api.github.com/users/jodytest1511/received_events","type":"User","site_admin":false},"created_at":"2020-03-06T17:16:44Z","updated_at":"2020-03-06T17:16:45Z","column_url":"https://api.github.com/projects/columns/8125057"}
@@ -0,0 +1,44 @@
https
GET
api.github.com
None
/projects/4015343
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:48 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4930'), ('X-RateLimit-Reset', '1583518122'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"859ccf140c23723c7919f2398b3871ba"'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0B6:492C:F647F7:1DC6448:5E628580')]
{"owner_url":"https://api.github.com/repos/jodytest1511/PyGithub","url":"https://api.github.com/projects/4015343","html_url":"https://github.com/jodytest1511/PyGithub/projects/15","columns_url":"https://api.github.com/projects/4015343/columns","id":4015343,"node_id":"MDc6UHJvamVjdDQwMTUzNDM=","name":"Project created by PyGithub","body":"Project Body","number":15,"state":"open","creator":{"login":"jodytest1511","id":61476392,"node_id":"MDQ6VXNlcjYxNDc2Mzky","avatar_url":"https://avatars1.githubusercontent.com/u/61476392?v=4","gravatar_id":"","url":"https://api.github.com/users/jodytest1511","html_url":"https://github.com/jodytest1511","followers_url":"https://api.github.com/users/jodytest1511/followers","following_url":"https://api.github.com/users/jodytest1511/following{/other_user}","gists_url":"https://api.github.com/users/jodytest1511/gists{/gist_id}","starred_url":"https://api.github.com/users/jodytest1511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodytest1511/subscriptions","organizations_url":"https://api.github.com/users/jodytest1511/orgs","repos_url":"https://api.github.com/users/jodytest1511/repos","events_url":"https://api.github.com/users/jodytest1511/events{/privacy}","received_events_url":"https://api.github.com/users/jodytest1511/received_events","type":"User","site_admin":false},"created_at":"2020-02-25T21:03:35Z","updated_at":"2020-03-06T17:16:47Z"}
https
GET
api.github.com
None
/projects/4015343/columns
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:48 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4929'), ('X-RateLimit-Reset', '1583518122'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"303e639b16402fbdd06370a9ce962b8b"'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0B7:71BE:FC8452:1E34B55:5E628580')]
[{"url":"https://api.github.com/projects/columns/8125057","project_url":"https://api.github.com/projects/4015343","cards_url":"https://api.github.com/projects/columns/8125057/cards","id":8125057,"node_id":"MDEzOlByb2plY3RDb2x1bW44MTI1MDU3","name":"Project Column created by PyGithub","created_at":"2020-02-25T21:03:36Z","updated_at":"2020-03-06T17:16:47Z"}]
https
POST
api.github.com
None
/projects/columns/8125057/cards
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"note": "Project Card"}
201
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:49 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '1320'), ('Status', '201 Created'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4928'), ('X-RateLimit-Reset', '1583518122'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', '"67e3f3f7c020923318db8f939964098f"'), ('Location', 'https://api.github.com/projects/columns/cards/34203323'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-GitHub-Request-Id', 'D0B8:471F:161261:2F9CBA:5E628580')]
{"url":"https://api.github.com/projects/columns/cards/34203323","project_url":"https://api.github.com/projects/4015343","id":34203323,"node_id":"MDExOlByb2plY3RDYXJkMzQyMDMzMjM=","note":"Project Card","archived":false,"creator":{"login":"jodytest1511","id":61476392,"node_id":"MDQ6VXNlcjYxNDc2Mzky","avatar_url":"https://avatars1.githubusercontent.com/u/61476392?v=4","gravatar_id":"","url":"https://api.github.com/users/jodytest1511","html_url":"https://github.com/jodytest1511","followers_url":"https://api.github.com/users/jodytest1511/followers","following_url":"https://api.github.com/users/jodytest1511/following{/other_user}","gists_url":"https://api.github.com/users/jodytest1511/gists{/gist_id}","starred_url":"https://api.github.com/users/jodytest1511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodytest1511/subscriptions","organizations_url":"https://api.github.com/users/jodytest1511/orgs","repos_url":"https://api.github.com/users/jodytest1511/repos","events_url":"https://api.github.com/users/jodytest1511/events{/privacy}","received_events_url":"https://api.github.com/users/jodytest1511/received_events","type":"User","site_admin":false},"created_at":"2020-03-06T17:16:49Z","updated_at":"2020-03-06T17:16:49Z","column_url":"https://api.github.com/projects/columns/8125057"}
https
PATCH
api.github.com
None
/projects/columns/cards/34203323
{'Accept': 'application/vnd.github.inertia-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{}
200
[('Server', 'GitHub.com'), ('Date', 'Fri, 06 Mar 2020 17:16:49 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4927'), ('X-RateLimit-Reset', '1583518122'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"67e3f3f7c020923318db8f939964098f"'), ('X-GitHub-Media-Type', 'github.inertia-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0B9:463A:10037D8:1FC2B4B:5E628581')]
{"url":"https://api.github.com/projects/columns/cards/34203323","project_url":"https://api.github.com/projects/4015343","id":34203323,"node_id":"MDExOlByb2plY3RDYXJkMzQyMDMzMjM=","note":"Project Card","archived":false,"creator":{"login":"jodytest1511","id":61476392,"node_id":"MDQ6VXNlcjYxNDc2Mzky","avatar_url":"https://avatars1.githubusercontent.com/u/61476392?v=4","gravatar_id":"","url":"https://api.github.com/users/jodytest1511","html_url":"https://github.com/jodytest1511","followers_url":"https://api.github.com/users/jodytest1511/followers","following_url":"https://api.github.com/users/jodytest1511/following{/other_user}","gists_url":"https://api.github.com/users/jodytest1511/gists{/gist_id}","starred_url":"https://api.github.com/users/jodytest1511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodytest1511/subscriptions","organizations_url":"https://api.github.com/users/jodytest1511/orgs","repos_url":"https://api.github.com/users/jodytest1511/repos","events_url":"https://api.github.com/users/jodytest1511/events{/privacy}","received_events_url":"https://api.github.com/users/jodytest1511/received_events","type":"User","site_admin":false},"created_at":"2020-03-06T17:16:49Z","updated_at":"2020-03-06T17:16:49Z","column_url":"https://api.github.com/projects/columns/8125057"}