reviewers: optimize diff data, and creation of PR with advanced default reviewers

This commit is contained in:
Marcin Kuzminski 2020-10-08 12:01:18 +02:00
parent e78b5fc1ee
commit 508c8ba158
3 changed files with 41 additions and 11 deletions

View file

@ -725,8 +725,12 @@ def create_pull_request(
# recalculate reviewers logic, to make sure we can validate this
default_reviewers_data = get_default_reviewers_data(
owner, source_db_repo,
source_commit, target_db_repo, target_commit)
owner,
source_repo,
Reference(source_type, source_name, source_commit_id),
target_repo,
Reference(target_type, target_name, target_commit_id)
)
# now MERGE our given with the calculated
reviewer_objects = default_reviewers_data['reviewers'] + reviewer_objects