Browse Source

Clarify project vs repository in getPullBySha

There continues to be some slightly confusing var terminology in
getPullBySha. Rename the project_name suffix variable to repository from
project to match the github3 term.

Change-Id: I5e34fcb80248532f97b470d7f829dd5c4577e5f3
changes/56/637956/1
Clark Boylan 2 years ago
parent
commit
8d73c2d2fd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      zuul/driver/github/githubconnection.py

+ 2
- 2
zuul/driver/github/githubconnection.py View File

@ -1206,8 +1206,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


Loading…
Cancel
Save