mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Fix tests after merging #50, and fix Repository.create_issue and .get_issues as well
This commit is contained in:
@@ -367,7 +367,7 @@ class Repository( GithubObject.GithubObject ):
|
||||
if milestone is not GithubObject.NotSet:
|
||||
post_parameters[ "milestone" ] = milestone._identity
|
||||
if labels is not GithubObject.NotSet:
|
||||
post_parameters[ "labels" ] = [ element._identity for element in labels ]
|
||||
post_parameters[ "labels" ] = [ element.name for element in labels ]
|
||||
headers, data = self._requester.requestAndCheck(
|
||||
"POST",
|
||||
self.url + "/issues",
|
||||
@@ -764,7 +764,7 @@ class Repository( GithubObject.GithubObject ):
|
||||
if mentioned is not GithubObject.NotSet:
|
||||
url_parameters[ "mentioned" ] = mentioned._identity
|
||||
if labels is not GithubObject.NotSet:
|
||||
url_parameters[ "labels" ] = ",".join( label._identity for label in labels )
|
||||
url_parameters[ "labels" ] = ",".join( label.name for label in labels )
|
||||
if sort is not GithubObject.NotSet:
|
||||
url_parameters[ "sort" ] = sort
|
||||
if direction is not GithubObject.NotSet:
|
||||
|
||||
Reference in New Issue
Block a user