Questions tagged [github-api-v4]
41 questions
0
votes
1 answer
How to get the search results code number in GitHub with GitHub API?
I have the following search term
navigator.geolocation.getCurrentPosition
which return 271,769 code results, how I can return the code results number by using github API
0
votes
1 answer
Github Automerge Failure Notification (API v4 GraphQL mutation enablePullRequestAutoMerge)
at my company we want to make use of the relatively new API feature "Automerge" (not through a UI but through an API call),
However we can't seem to find any documentation of a webhook (or other asyc way) of finding out if a merge request failed and…

WOOB
- 1
- 1
0
votes
0 answers
Can I use GitHub GraphQL API from the browser safely?
Can I use GitHub GraphQL API from the browser?
In that case, can I set HTTP referrers restriction to prevent abuse?

mira
- 265
- 2
- 11
0
votes
2 answers
How to map Github GraphQL API commit responses to react-bootstrap Cards?
All the following code is in a custom component titled CommitCards.
Given the following gql query using React Apollo.
const GET_REPO_COMMITS = gql`
query GetRepoCommits($repoName: String!) {
repository(name: $repoName, owner: "FernandoH-G") {
…

FernandoH-G
- 74
- 11
0
votes
1 answer
GitHub v4 API: Calculate content specific reaction count on a comment
I am trying to get the reaction count for each content using the Github v4 API (GraphQL). Can anyone suggest how can I achieve this?
Github supports the following reactions:
THUMBS_UP
THUMBS_DOWN
LAUGH
HOORAY
CONFUSED
HEART
ROCKET
EYES
For each…

user9469335
- 192
- 1
- 10
0
votes
1 answer
Can I use GitHub API to extract the events of 'used by' of a repository?
GitHub supports listing the projects that depend on a repository. Can I extract the events (e.g. time) of these dependencies by GitHub API? If not, how can I get this information?

Sunflowers
- 67
- 8
0
votes
1 answer
Github GraphQL API v4 Query on CommitAuthor
I am trying to run the following query on Githubs GraphQL api:
{
user(login: "davekaj") {
id
repositories(first: 10, orderBy: {field: NAME, direction: ASC}) {
nodes {
ref(qualifiedName: "master") {
target {
…

dave kajpust
- 141
- 3
0
votes
1 answer
How compose GraphQL query for github
How to present this string as a GraphQL query
curl -H "Authorization: bearer token" https://api.github.com/graphql
Help me please

Макс
- 95
- 4
0
votes
0 answers
Using Githup api - -i need to find the most commit person in the last year with java code
This way I pulled all the repositories:
public static void getAllCommitUrlReader() throws MalformedURLException, IOException {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(
…

ahmet dellal
- 26
- 3
0
votes
1 answer
How to query the GraphQL GitHub API fo find my first git commit ever?
I played with the API and was able to find all repositories I ever contributed to, but I struggle to find my very first commit.
What I tried:
{
viewer {
repositoriesContributedTo(first: 100, privacy: PUBLIC, contributionTypes: COMMIT, before:…

Jürgen Gmach
- 5,366
- 3
- 20
- 37
0
votes
0 answers
How to get version/tag(where changes were reflected) of merged Pull requests using github?
I want to get the version/tag where the changes of merged PR were reflected. To get that I tried constructing commits tree for the master branch using git API repos/:owner/:name/commits?sha=.After constructing tree, I will map all the…

Ankush K
- 334
- 3
- 13