Merge "Fix github app authentication in _getNeededByFromPR" into feature/zuulv3

This commit is contained in:
Zuul 2018-01-08 21:39:47 +00:00 committed by Gerrit Code Review
commit 6aa1729626
1 changed files with 2 additions and 1 deletions

View File

@ -718,7 +718,8 @@ class GithubConnection(BaseConnection):
change.project.name,
change.number)
query = '%s type:pr is:open in:body' % pattern
github = self.getGithubClient()
# FIXME(tobiash): find a way to query this for different installations
github = self.getGithubClient(change.project.name)
for issue in github.search_issues(query=query):
pr = issue.issue.pull_request().as_dict()
if not pr.get('url'):