Show More
@@ -666,15 +666,13 b' def create_pull_request(' | |||||
666 | except ValueError as e: |
|
666 | except ValueError as e: | |
667 | raise JSONRPCError('Reviewers Validation: {}'.format(e)) |
|
667 | raise JSONRPCError('Reviewers Validation: {}'.format(e)) | |
668 |
|
668 | |||
669 |
pull_request |
|
669 | pull_request = PullRequestModel().create( | |
670 | pull_request = pull_request_model.create( |
|
|||
671 | created_by=apiuser.user_id, |
|
670 | created_by=apiuser.user_id, | |
672 | source_repo=source_repo, |
|
671 | source_repo=source_repo, | |
673 | source_ref=full_source_ref, |
|
672 | source_ref=full_source_ref, | |
674 | target_repo=target_repo, |
|
673 | target_repo=target_repo, | |
675 | target_ref=full_target_ref, |
|
674 | target_ref=full_target_ref, | |
676 | revisions=reversed( |
|
675 | revisions=[commit.raw_id for commit in reversed(commit_ranges)], | |
677 | [commit.raw_id for commit in reversed(commit_ranges)]), |
|
|||
678 | reviewers=reviewers, |
|
676 | reviewers=reviewers, | |
679 | title=title, |
|
677 | title=title, | |
680 | description=Optional.extract(description), |
|
678 | description=Optional.extract(description), |
General Comments 0
You need to be logged in to leave comments.
Login now