Merge "Clarify project vs repository in getPullBySha"

This commit is contained in:
Zuul 2019-02-19 18:55:43 +00:00 committed by Gerrit Code Review
commit 06dc412f71
1 changed files with 2 additions and 2 deletions

View File

@ -1200,8 +1200,8 @@ class GithubConnection(BaseConnection):
pulls = []
github = self.getGithubClient(project_name)
owner, project = project_name.split('/')
repo = github.repository(owner, project)
owner, repository = project_name.split('/')
repo = github.repository(owner, repository)
for pr in repo.pull_requests(state='open',
# We sort by updated from oldest to newest
# as that will prefer more recently