Commits¶
Commits¶
Reference¶
v4 API:
gitlab.v4.objects.Project.commits
Examples¶
List the commits for a project:
You can use the ref_name, since and until filters to limit the results:
Note
The available all listing argument conflicts with the python-gitlab argument. Use query_parameters to avoid the conflict:
Create a commit:
Get a commit detail:
Get the diff for a commit:
Cherry-pick a commit into another branch:
Get the references the commit has been pushed to (branches and tags):
List the merge requests related to a commit:
Commit comments¶
Reference¶
v4 API:
gitlab.v4.objects.ProjectCommit.comments
GitLab API: https://docs.gitlab.com/ce/api/commits.html
Examples¶
Get the comments for a commit:
Add a comment on a commit:
Commit status¶
Reference¶
v4 API:
gitlab.v4.objects.ProjectCommit.statuses
GitLab API: https://docs.gitlab.com/ce/api/commits.html
Examples¶
List the statuses for a commit:
Change the status of a commit: