Skip to content

Commit

Permalink
Fixed get pull request to return correct json.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Rasmussen committed May 24, 2017
1 parent 1a51cc5 commit 420bc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/stash/Stash.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def stash_getpullrequest(self, variables):
endpoint_get = "/rest/api/1.0/projects/%s/repos/%s/pull-requests/%s" % (variables['project'], variables['repository'], str(variables['prid']))
print "Getting Pull Request %s current version using endpoint %s" % (str(variables['prid']), endpoint_get)
response = self.api_call('GET', endpoint_get, contentType="application/json", Origin = variables['server']['url'])
data = json.loads(response.getResponse())
data = response.getResponse()
return {'output' : data}

def stash_searchfilecontent(self,variables):
Expand Down

0 comments on commit 420bc0a

Please sign in to comment.