Method: Gitlab::Client::RepositoryFiles#edit_file
- Defined in:
- lib/gitlab/client/repository_files.rb
permalink #edit_file(project, path, branch, content, commit_message, options = {}) ⇒ Gitlab::ObjectifiedHash
Edits an existing repository file.
94 95 96 97 98 99 |
# File 'lib/gitlab/client/repository_files.rb', line 94 def edit_file(project, path, branch, content, , = {}) put("/projects/#{url_encode project}/repository/files/#{url_encode path}", body: { branch: branch, commit_message: }.merge().merge(encoded_content_attributes(content))) end |