diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2020-02-19 00:30:48 +0100 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2020-02-19 00:30:48 +0100 |
commit | b77b945c7e0000fad4c422a5331c7e905e619a33 (patch) | |
tree | e82aec1111c26849470b4567bafdab848f8d152a /gitlab | |
parent | ad3e833671c49db194c86e23981215b13b96bb1d (diff) | |
download | gitlab-b77b945c7e0000fad4c422a5331c7e905e619a33.tar.gz |
fix: return response with commit data
Diffstat (limited to 'gitlab')
-rw-r--r-- | gitlab/v4/objects.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 8b94f07..83f77d3 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -2148,10 +2148,13 @@ class ProjectCommit(RESTObject): Raises: GitlabAuthenticationError: If authentication is not correct GitlabRevertError: If the revert could not be performed + + Returns: + dict: The new commit data (*not* a RESTObject) """ path = "%s/%s/revert" % (self.manager.path, self.get_id()) post_data = {"branch": branch} - self.manager.gitlab.http_post(path, post_data=post_data, **kwargs) + return self.manager.gitlab.http_post(path, post_data=post_data, **kwargs) class ProjectCommitManager(RetrieveMixin, CreateMixin, RESTManager): |