github-api

How to use Github Release API to make a release without source code?

不问归期 提交于 2020-01-02 03:42:27
问题 I am using blow command to publish a release on Github repo: curl -X POST -H "Authorization: token xxxxxxxxx" -d '{"tag_name": "test", "name":"release-0.0.1","body":"this is a test release"}' https://api.github.com/repos/xxxxxx I can see that a new release is created. But there are two download buttons under it: Source code (zip) Source code (tar.gz) How can I make a release without source code? If I can't remove the source code attachment, how can I upload additional binary files? I tried to

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

三世轮回 提交于 2020-01-01 10:30:08
问题 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 proceeded to build the following curl request in order to try and publish an existing tag (0.0.5) curl -v -i -X POST -H "Content-Type:application/json" -H "Authorization: token 1a1a1a11a11a11a11a11a11a11a1a11a1a1a1a1" https://api.github.com/repos/codeStyler87/test-tags/releases -d '{"tag_name":"0.0.5","target_commitish":

Get git commits by branch name\id with git api

旧街凉风 提交于 2020-01-01 05:12:30
问题 I am working on automated service to work with Git hub repositories. And I am having problem on my side - I can't find a way to get all commit in particular branch by its hash\name. My code is an automated tool to make code reviewes. So I've added a feature to ignore particular branch in my review process (ex. a testing branch or something like that). So in my service I am marking branch as ignored. Once I get commits from git hub api - there is no information there about which branch is

Making a Post request to Github API for creating issue is not working

血红的双手。 提交于 2020-01-01 05:00:06
问题 I have been trying to make this post request to the github api for the last couple of days, but unfortunately the response is coming back as "bad message" here is the piece of code we are sending in the post request using https request in node - This is the post data var issueData = JSON.stringify({ "title":title, "body":comment }); This is the options file var options = { host: 'api.github.com', path: '/repos/sohilpandya/katasohil/issues?access_token='+sessions.token, headers: { 'User-Agent'

How can I use github api to get all tags or releases for a project?

我怕爱的太早我们不能终老 提交于 2020-01-01 04:51:08
问题 I would like to know how to use the github-api to get all the current releases or tags for a project. I have seen the documentation for tags in github-api but I don't see a way to list all tags or list all releases but only list a specific tag by :sha. 回答1: It's possible, but the documentation is perhaps not in the place you'd expect it to be. http://developer.github.com/v3/git/refs/ You can also request a sub-namespace. For example, to get all the tag references, you can call: GET /repos/

GitHub WebHooks triggered globally instead of per branch

六眼飞鱼酱① 提交于 2019-12-31 22:26:32
问题 Our product creates WebHooks at GitHub. One for each customer project. Each such project, is linked to a single branch. When a push to GitHub is performed, the corresponding WebHook is triggered, which in its turn, is making a request to an endpoint on our side to perform a certain action. A common scenario is that a customer would have several projects, connected to several different branches of the same repository. Hence, several different WebHooks are connected to the same repository. The

Finding total contributions of a user from Github API

喜夏-厌秋 提交于 2019-12-31 21:32:37
问题 I am trying to extract the below info for any user from github. Is there a way/api exposed in github-api where we can get this information directly ? 回答1: This is probably not the solution you're looking for but the array generated here has all the information you need: curl https://github.com/users/ankit8898/contributions_calendar_data I'm sure you're looking for a solution which is elegant than this. UPDATE Looks like this isn't the latest way to get the contributors data. Please look

Finding total contributions of a user from Github API

谁都会走 提交于 2019-12-31 21:32:12
问题 I am trying to extract the below info for any user from github. Is there a way/api exposed in github-api where we can get this information directly ? 回答1: This is probably not the solution you're looking for but the array generated here has all the information you need: curl https://github.com/users/ankit8898/contributions_calendar_data I'm sure you're looking for a solution which is elegant than this. UPDATE Looks like this isn't the latest way to get the contributors data. Please look

whats the lifetime of Github OAuth API access token

大城市里の小女人 提交于 2019-12-31 11:01:27
问题 what is the expiry time of github oauth access token. And also how do I renew it. I don't see any refresh token in their documentation. Please guide me. Thanks in advance. 回答1: As commented in this "GitHub OAuth Busy Developer's Guide" Tokens don't have to expire. You can check an OAuth application authorization, delete it or revoke it. But the token itself doesn't seem to be bound to an expiry date. badsyntax adds in the comments: I also found this useful: "An OAuth token does not expire

whats the lifetime of Github OAuth API access token

允我心安 提交于 2019-12-31 11:01:20
问题 what is the expiry time of github oauth access token. And also how do I renew it. I don't see any refresh token in their documentation. Please guide me. Thanks in advance. 回答1: As commented in this "GitHub OAuth Busy Developer's Guide" Tokens don't have to expire. You can check an OAuth application authorization, delete it or revoke it. But the token itself doesn't seem to be bound to an expiry date. badsyntax adds in the comments: I also found this useful: "An OAuth token does not expire