I need help with Github API,
I need commit new version of file through api, I'm trying to achieve this by sending post request to
https://api.github.com/repos/:username/:repo:/git/commits/
with data
{
"login": "username",
"token": "auth_token",
"parent_commit": "sha",
"message": "commit message.",
"content": {
"path": "full/path",
"mode": "edit",
"data": "new content"
}
}
But it fails with result - not found.
Have anyone idea where to send this request and if this format is right?
(Format is inspired by - http://swanson.github.com/blog/2011/07/23/digging-around-the-github-api-take-2.html)
Thank you!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…