Skip to content

Commit 037585c

Browse files
author
Gauvain Pocentek
committed
[docs] add a code example for listing commits of a MR
Fixes python-gitlab#491
1 parent a643763 commit 037585c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/gl_objects/mrs.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ Cancel a MR when the build succeeds::
8282
mr.cancel_merge_when_build_succeeds() # v3
8383
mr.cancel_merge_when_pipeline_succeeds() # v4
8484

85+
List commits of a MR::
86+
87+
commits = mr.commits()
88+
8589
List issues that will close on merge::
8690

8791
mr.closes_issues()

0 commit comments

Comments
 (0)