github-contents icon indicating copy to clipboard operation
github-contents copied to clipboard

Ability to commit to a branch other than master

Open simonw opened this issue 5 years ago • 2 comments

Needed for https://github.com/simonw/cryptozoology/issues/19

simonw avatar Mar 13 '20 18:03 simonw

https://developer.github.com/v3/repos/contents/ - for the contents API you can pass ?ref=branchname when reading and include branch in the POST when writing.

simonw avatar Mar 13 '20 19:03 simonw

I need a branch_exists() method.

simonw avatar Mar 13 '20 21:03 simonw