Github create comment api not working -
Github create comment api not working -
i'm looking @ github create comment api referenced here - https://developer.github.com/v3/pulls/comments/#create-a-comment
as per api, if @ https://api.github.com/repos/govin/log4js-node/pulls/1/comments, array of comments back.
however, when post @ https://api.github.com/repos/govin/log4js-node/pulls/1/comments, response 404.
remember that:
a post require proper authentication, shown in github post tutorial. no authentication means 404.
curl --user "caspyin" --request post --data {...}
you need proper info mentioned in "create comment"
{ "body": "nice change", "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", "path": "file1.txt", "position": 4 }
github github-api
Comments
Post a Comment