mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
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:
committed by
Wan Liuyang
parent
feabda5d29
commit
678b6b2006
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user