Github API创建提交

问题描述 投票:4回答:2

我需要有关Github API的帮助,

我需要通过api提交文件的新版本,我正在尝试通过将发布请求发送到]来实现此目的>

https://api.github.com/repos/:username/:repo:/git/commits/

有数据

{
    "login": "username",
    "token": "auth_token",
    "parent_commit": "sha",
    "message": "commit message.",
    "content": {
        "path": "full/path",
        "mode": "edit",
        "data": "new content"
    }
}

但是它失败并显示结果-找不到。

有人知道发送此请求的位置以及此格式是否正确吗?

(格式由-http://swanson.github.com/blog/2011/07/23/digging-around-the-github-api-take-2.html启发)

谢谢!

我需要有关Github API的帮助,我需要通过api提交新版本的文件,我正在尝试通过向https://api.github.com/repos/:username/:repo:/发送发帖请求来实现这一目标git / commits / with ...

json api http github commit
2个回答
4
投票

我也对此感到困惑!


1
投票

注意,自2013年5月以来,您拥有CRUD API available

© www.soinside.com 2019 - 2024. All rights reserved.