We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentd8b8a0a commit472add7Copy full SHA for 472add7
gitlab/v4/objects/repositories.py
@@ -204,3 +204,25 @@ def delete_merged_branches(self, **kwargs):
204
"""
205
path="/projects/%s/repository/merged_branches"%self.get_id()
206
self.manager.gitlab.http_delete(path,**kwargs)
207
+
208
+@cli.register_custom_action(
209
+"Project",
210
+ ("version_tag",),
211
+ ("from","to","date","branch","trailer","file","message"),
212
+ )
213
+@exc.on_http_error(exc.GitlabCreateError)
214
+defchangelog(self,data=None,**kwargs):
215
+"""Create a changelog entry in the repository.
216
217
+ Args:
218
+ **kwargs: Extra options to send to the server (e.g. sudo)
219
220
+ Raises:
221
+ GitlabAuthenticationError: If authentication is not correct
222
+ GitlabCreateError: If the server failed to perform the request
223
+ """
224
+path="/projects/%s/repository/changelog"%self.get_id()
225
226
+# This is here to avoid clashing with the CLI's `--version` flag
227
228
+self.manager.gitlab.http_post(path,data=data,**kwargs)