PullRequest labels should use Issues URL (#754)

The Github API docs for PullRequests say to make use of the Issues API
to add, remove, set and query labels. This means that we need to make
use of the issue_url property for the PullRequest, not its own URL.
This commit is contained in:
Steve Kowalik
2018-04-17 10:21:26 +08:00
committed by Wan Liuyang
parent feabda5d29
commit 678b6b2006
8 changed files with 37 additions and 37 deletions
@@ -2,7 +2,7 @@ https
GET
api.github.com
None
/repos/jacquev6/PyGithub/pulls/31/labels
/repos/jacquev6/PyGithub/issues/31/labels
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
@@ -13,7 +13,7 @@ https
DELETE
api.github.com
None
/repos/jacquev6/PyGithub/pulls/31/labels/wip
/repos/jacquev6/PyGithub/issues/31/labels/wip
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
@@ -24,7 +24,7 @@ https
GET
api.github.com
None
/repos/jacquev6/PyGithub/pulls/31/labels
/repos/jacquev6/PyGithub/issues/31/labels
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
@@ -35,7 +35,7 @@ https
DELETE
api.github.com
None
/repos/jacquev6/PyGithub/pulls/31/labels/refactoring
/repos/jacquev6/PyGithub/issues/31/labels/refactoring
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
@@ -46,7 +46,7 @@ https
GET
api.github.com
None
/repos/jacquev6/PyGithub/pulls/31/labels
/repos/jacquev6/PyGithub/issues/31/labels
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
@@ -57,7 +57,7 @@ https
POST
api.github.com
None
/repos/jacquev6/PyGithub/pulls/31/labels
/repos/jacquev6/PyGithub/issues/31/labels
{'Content-Type': 'application/json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
["wip", "refactoring"]
200
@@ -68,7 +68,7 @@ https
GET
api.github.com
None
/repos/jacquev6/PyGithub/pulls/31/labels
/repos/jacquev6/PyGithub/issues/31/labels
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200