github-api

How to get a list of all forks of a GitHub repo on Linux?

大兔子大兔子 提交于 2020-08-10 17:51:11
问题 I would like to have a simple, non-interactive way to get a list of forks of a GitHub repo. For me personally, it has to run on at least Linux. 回答1: Using GraphQL (GiHub API v4) from a bash script, using cURL: #!/bin/bash # Returns a list of all forks of a github repo. # See the output of "$0 -h" for more details. set -e # initial default values access_token="" repo_owner=$USER repo_name=$(basename $(pwd)) res_file=res.json function print_help() { echo "Returns a list of all forks of a github

How to get a list of all forks of a GitHub repo on Linux?

流过昼夜 提交于 2020-08-10 17:51:06
问题 I would like to have a simple, non-interactive way to get a list of forks of a GitHub repo. For me personally, it has to run on at least Linux. 回答1: Using GraphQL (GiHub API v4) from a bash script, using cURL: #!/bin/bash # Returns a list of all forks of a github repo. # See the output of "$0 -h" for more details. set -e # initial default values access_token="" repo_owner=$USER repo_name=$(basename $(pwd)) res_file=res.json function print_help() { echo "Returns a list of all forks of a github

Get user activity statistics from GitHub API

戏子无情 提交于 2020-08-05 10:52:18
问题 I've been poking through the GitHub API documentation and I can't seem to find a way to get the data that powers the "Contribution Activity" section and the contribution chart for a user's profile. Is there a way to get this through the API? I know that there are user/:user/events and /recieved_events endpoints, but these seem to mostly consist of when the user stars repositories. I'm uninterested in the actual information of which repository/what commit/etc, but only interested in getting a

Get user activity statistics from GitHub API

夙愿已清 提交于 2020-08-05 10:51:19
问题 I've been poking through the GitHub API documentation and I can't seem to find a way to get the data that powers the "Contribution Activity" section and the contribution chart for a user's profile. Is there a way to get this through the API? I know that there are user/:user/events and /recieved_events endpoints, but these seem to mostly consist of when the user stars repositories. I'm uninterested in the actual information of which repository/what commit/etc, but only interested in getting a

What exactly is a Release in GitHub?

南笙酒味 提交于 2020-07-31 07:13:05
问题 What is it exactly? For what is it used? How widespread is the usage? How is it usually used? 回答1: From Official GitHub: Releases are GitHub's way of packaging and providing software to your users. You can think of it as a replacement to using downloads to provide software. With Releases , you can provide links to binary files, as well as release notes describing your changes. At their core, Releases are based on Git tags. Tags mark a specific point in the history of your project, so they're

What exactly is a Release in GitHub?

烈酒焚心 提交于 2020-07-31 07:12:47
问题 What is it exactly? For what is it used? How widespread is the usage? How is it usually used? 回答1: From Official GitHub: Releases are GitHub's way of packaging and providing software to your users. You can think of it as a replacement to using downloads to provide software. With Releases , you can provide links to binary files, as well as release notes describing your changes. At their core, Releases are based on Git tags. Tags mark a specific point in the history of your project, so they're