I'm creating a iOS workflow to publish notes on my repo, it is working quite well but now I want to do it on a branch to keep testing.
I'm exporting the note text and pass the next url:
https://api.github.com/repos/ramiro-ruiz/ramiroruiz.com/contents/content/notes/slug.md
Send the authorization token and a simple commit message.
All this is done on master and to send it to a branch I tried by adding ?ref=my-branch
at the end of the url (https://api.github.com/repos/ramiro-ruiz/ramiroruiz.com/contents/content/notes/slug.md?ref=my-branch) but is not working as it keeps publishing to master.
Anyone have an idea of what I'm doing wrong?
The create or update content API does include a branch
parameters, not a ref
one.
PUT /repos/:owner/:repo/contents/:path
branch
: The branch name. Default: the repository’s default branch (usually master
)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments