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