Show More
@@ -90,7 +90,7 b' comment_pull_request' | |||
|
90 | 90 | create_pull_request |
|
91 | 91 | ------------------- |
|
92 | 92 | |
|
93 | .. py:function:: create_pull_request(apiuser, source_repo, target_repo, source_ref, target_ref, owner=<Optional:<OptionalAttr:apiuser>>, title=<Optional:''>, description=<Optional:''>, description_renderer=<Optional:''>, reviewers=<Optional:None>) | |
|
93 | .. py:function:: create_pull_request(apiuser, source_repo, target_repo, source_ref, target_ref, owner=<Optional:<OptionalAttr:apiuser>>, title=<Optional:''>, description=<Optional:''>, description_renderer=<Optional:''>, reviewers=<Optional:None>, observers=<Optional:None>) | |
|
94 | 94 | |
|
95 | 95 | Creates a new pull request. |
|
96 | 96 | |
@@ -128,6 +128,13 b' create_pull_request' | |||
|
128 | 128 | Accepts username strings or objects of the format: |
|
129 | 129 | |
|
130 | 130 | [{'username': 'nick', 'reasons': ['original author'], 'mandatory': <bool>}] |
|
131 | :param observers: Set the new pull request observers list. | |
|
132 | Reviewer defined by review rules will be added automatically to the | |
|
133 | defined list. This feature is only available in RhodeCode EE | |
|
134 | :type observers: Optional(list) | |
|
135 | Accepts username strings or objects of the format: | |
|
136 | ||
|
137 | [{'username': 'nick', 'reasons': ['original author']}] | |
|
131 | 138 | |
|
132 | 139 | |
|
133 | 140 | get_pull_request |
@@ -392,7 +399,7 b' merge_pull_request' | |||
|
392 | 399 | update_pull_request |
|
393 | 400 | ------------------- |
|
394 | 401 | |
|
395 | .. py:function:: update_pull_request(apiuser, pullrequestid, repoid=<Optional:None>, title=<Optional:''>, description=<Optional:''>, description_renderer=<Optional:''>, reviewers=<Optional:None>, update_commits=<Optional:None>) | |
|
402 | .. py:function:: update_pull_request(apiuser, pullrequestid, repoid=<Optional:None>, title=<Optional:''>, description=<Optional:''>, description_renderer=<Optional:''>, reviewers=<Optional:None>, observers=<Optional:None>, update_commits=<Optional:None>) | |
|
396 | 403 | |
|
397 | 404 | Updates a pull request. |
|
398 | 405 | |
@@ -414,7 +421,11 b' update_pull_request' | |||
|
414 | 421 | Accepts username strings or objects of the format: |
|
415 | 422 | |
|
416 | 423 | [{'username': 'nick', 'reasons': ['original author'], 'mandatory': <bool>}] |
|
424 | :param observers: Update pull request observers list with new value. | |
|
425 | :type observers: Optional(list) | |
|
426 | Accepts username strings or objects of the format: | |
|
417 | 427 | |
|
428 | [{'username': 'nick', 'reasons': ['should be aware about this PR']}] | |
|
418 | 429 | :param update_commits: Trigger update of commits for this pull request |
|
419 | 430 | :type: update_commits: Optional(bool) |
|
420 | 431 | |
@@ -432,6 +443,12 b' update_pull_request' | |||
|
432 | 443 | ], |
|
433 | 444 | "removed": [] |
|
434 | 445 | }, |
|
446 | "updated_observers": { | |
|
447 | "added": [ | |
|
448 | "username" | |
|
449 | ], | |
|
450 | "removed": [] | |
|
451 | }, | |
|
435 | 452 | "updated_commits": { |
|
436 | 453 | "added": [ |
|
437 | 454 | "<sha1_hash>" |
General Comments 0
You need to be logged in to leave comments.
Login now