github-api

Bad Credentials for Github API

走远了吗. 提交于 2020-12-06 06:37:25
问题 I have the following script, which I am trying to test out in bash, using curl to do a couple things, one is to create a new repo, the second - which is not implemented yet - is to get the git_url from the json thats returned, which I'm not sure if my parse_json function will let me do that and then finally to push a sample commit message to that repo. the script is as follows: #!/usr/bin/env bash set -eux # Json Function: parse_json 'json string' key function parse_json() { echo $1 | sed -e

Get Pipeline Value of GitHub Issues?

不打扰是莪最后的温柔 提交于 2020-12-03 06:06:09
问题 I use ZenHub to manage my Issues on GitHub. When I go to the detail of an issue I can see the property "pipeline" in GitHub which is exactly the column where the Issue is saved. Now I want to get the pipeline information out of my issues using the API of GitHub. But none of the Issue-Methods GET /repos/:owner/:repo/issues or GET /repos/:owner/:repo/issues/:number seem to have any information about the pipeline. Is it hidden anywhere else? 回答1: With the Github API v4, you can query the

How to use GitHub API to get a repository's dependents information in GitHub?

江枫思渺然 提交于 2020-12-02 07:12:58
问题 When I was using GitHub API v4 to get some information, I can easily get dependencies by using repository.dependencyGraphManifests . But I can't find any way to use GitHub API v4 to get the dependents information, though I can see it in the Insights->Dependency Graph->Dependents . I want to know if there is any possible way to get the dependents information in a GitHub repository? Whether GitHub API or something else. 回答1: I don't think you can get the dependents project using Github API

Embed Github contributions graph in website

我的梦境 提交于 2020-11-30 02:35:46
问题 Is there a way to embed the Github contributions graph in HTML5? 回答1: I wrote a JavaScript library to do that: github-calendar. Here is an example how to use it: <!-- Prepare a container for your calendar. --> <script src="https://cdn.rawgit.com/IonicaBizau/github-calendar/gh-pages/dist/github-calendar.min.js" > </script> <!-- Optionally, include the theme (if you don't want to struggle to write the CSS) --> <link rel="stylesheet" href="https://cdn.rawgit.com/IonicaBizau/github-calendar/gh

GitHub API v4: How can I traverse with pagination? (GraphQL)

萝らか妹 提交于 2020-11-26 14:48:26
问题 I'm using Github API v4 to run search query. From the API documentation I can understand that the following query gives me pageInfo but I don't know how to use it to traverse. query { search(first: 100, type:USER, query:"location:usa repos:>0 language:java") { pageInfo { startCursor hasNextPage endCursor } userCount nodes { ... on User { bio company email id isBountyHunter isCampusExpert isDeveloperProgramMember isEmployee isHireable isSiteAdmin isViewer location login name url websiteUrl } }

GitHub API v4: How can I traverse with pagination? (GraphQL)

徘徊边缘 提交于 2020-11-26 14:32:39
问题 I'm using Github API v4 to run search query. From the API documentation I can understand that the following query gives me pageInfo but I don't know how to use it to traverse. query { search(first: 100, type:USER, query:"location:usa repos:>0 language:java") { pageInfo { startCursor hasNextPage endCursor } userCount nodes { ... on User { bio company email id isBountyHunter isCampusExpert isDeveloperProgramMember isEmployee isHireable isSiteAdmin isViewer location login name url websiteUrl } }

GitHub API v4: How can I traverse with pagination? (GraphQL)

谁说我不能喝 提交于 2020-11-26 14:26:59
问题 I'm using Github API v4 to run search query. From the API documentation I can understand that the following query gives me pageInfo but I don't know how to use it to traverse. query { search(first: 100, type:USER, query:"location:usa repos:>0 language:java") { pageInfo { startCursor hasNextPage endCursor } userCount nodes { ... on User { bio company email id isBountyHunter isCampusExpert isDeveloperProgramMember isEmployee isHireable isSiteAdmin isViewer location login name url websiteUrl } }

GitHub API v4: How can I traverse with pagination? (GraphQL)

纵饮孤独 提交于 2020-11-26 14:25:11
问题 I'm using Github API v4 to run search query. From the API documentation I can understand that the following query gives me pageInfo but I don't know how to use it to traverse. query { search(first: 100, type:USER, query:"location:usa repos:>0 language:java") { pageInfo { startCursor hasNextPage endCursor } userCount nodes { ... on User { bio company email id isBountyHunter isCampusExpert isDeveloperProgramMember isEmployee isHireable isSiteAdmin isViewer location login name url websiteUrl } }