summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatej Focko <mfocko@redhat.com>2021-07-20 14:45:14 +0200
committerJohn Villalovos <john@sodarock.com>2021-07-21 08:02:57 -0700
commitb30b8ac27d98ed0a45a13775645d77b76e828f95 (patch)
tree1fa9b9396fca3282ef83a953c6bbaf802c4c7826 /docs
parent1e24ab247cc783ae240e94f6cb379fef1e743a52 (diff)
downloadgitlab-b30b8ac27d98ed0a45a13775645d77b76e828f95.tar.gz
docs: add example for mr.merge_ref
Signed-off-by: Matej Focko <mfocko@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/gl_objects/mrs.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/gl_objects/mrs.rst b/docs/gl_objects/mrs.rst
index 29cbced..47c626b 100644
--- a/docs/gl_objects/mrs.rst
+++ b/docs/gl_objects/mrs.rst
@@ -182,6 +182,11 @@ Attempt to rebase an MR::
mr.rebase()
+Attempt to merge changes between source and target branch::
+
+ response = mr.merge_ref()
+ print(response['commit_id'])
+
Merge Request Pipelines
=======================