Skip to content

Commit 2c870eb

Browse files
committed
Merge pull request pyapi-gitlab#60 from asmacdo/patch-1
add documentation for files (6.2+)
2 parents bb77e65 + 583113f commit 2c870eb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/index.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,23 @@ Get one note from a merge request wall::
517517
Creat a note in the wall of a merge request::
518518

519519
git.createmergerequestewallnote(project_id, merge_request_id, content)
520+
521+
Files
522+
=====
523+
524+
Version 6.2 added support for files.
525+
526+
Create a new file in the repository::
527+
528+
git.createfile(project_id, file_path, branch_name, content, commit_message)
529+
530+
Update an existing file::
531+
532+
git.updatefile(project_id, file_path, branch_name, content, commit_message)
533+
534+
Deleting a file::
535+
536+
git.deletefile(project_id, file_path, branch_name, commit_message)
520537

521538
Examples
522539
=========

0 commit comments

Comments
 (0)