How to create and publish a Release using GitHub API v3 with curl?

前端 未结 2 1403
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-15 23:54

According to the github api documentation (https://developer.github.com/v3/repos/releases/) I need to send a post request including a payload that requires the tag_name. So I pr

相关标签:
2条回答
  • 2021-02-16 00:07

    Your access token misses the privilege public_repo.

    0 讨论(0)
  • 2021-02-16 00:12

    I had this problem and found that removing the slash in the path after releases solved it:

    https://api.github.com/repos/codeStyler87/test-tags/releases
    

    not

    https://api.github.com/repos/codeStyler87/test-tags/releases/
    

    Either that or it's completely random like the OP.

    0 讨论(0)
提交回复
热议问题