Method: GitHub::Client::Contents#update_file
- Defined in:
- lib/github_api_v3/client/contents.rb
#update_file(owner, repo, options = {}) ⇒ Hash Also known as: edit_file
Update a file in a repository.
Requires authentication.
92 93 94 95 |
# File 'lib/github_api_v3/client/contents.rb', line 92 def update_file(owner, repo, ={}) [:content] = Base64.strict_encode64([:content]) put "/repos/#{owner}/#{repo}/contents/#{[:path]}", body: end |