github-graphql

Github GraphQl - How to get a list of commits between tags

给你一囗甜甜゛ 提交于 2021-01-29 08:52:43
问题 With Github GraphQL I want to answer the question: What commits have been merged into master between releases/tags? The result should be similar to the results for this question Get commit list between tags in Git if I were to do it on the command line. I'm using the developer explorer and wondering if I will be able to do this with a single query or if I will need several. I tried the following but it does not give me the commits between tags that have not been tagged, just the tagged

How to compare two branches in github with GraphQL?

社会主义新天地 提交于 2021-01-29 05:15:15
问题 Can we compare two branches with the Github GraphQL? From their v3 rest API, you can do: /repos/:owner/:repo/compare/:base...:head (docs: https://developer.github.com/v3/repos/commits/#compare-two-commits) and this works with SHA's, branches, tags, etc. However, I'm unable to find it's equivalent GraphQL query in the docs. This is my attempt so far : I'm able to get the list of commits for each branch seperately, however, the entire history is loaded and I would only like the difference

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 } }