github-tools / github

A higher-level wrapper around the Github API. Intended for the browser.
BSD 3-Clause "New" or "Revised" License
3.56k stars 754 forks source link

How can I write and send a file to a repository? #657

Closed JeanExtreme002 closed 2 years ago

JeanExtreme002 commented 2 years ago

Hello. I would like to know how I can write a file, such as README.md, and send it to my repository using this API.

I found on docs the method Repository.createBlob but it receives just the content and not the filename. And I'm even not sure if that is the correct method to do what I want.