Fix tests after merging #50, and fix Repository.create_issue and .get_issues as well

This commit is contained in:
Vincent Jacques
2012-06-28 21:06:05 +01:00
parent 18b9182f71
commit efdaa8945d
8 changed files with 35 additions and 34 deletions
+2 -2
View File
@@ -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: