According to the documentation (https://docs.github.com/en/graphql/reference/objects#commit), the parents function returns "the parents of a commit." Are these sorted the same way as in git? For example, if I merge branch B into branch A, will the…
Once a pull request is approved by any member of a requested team, it disappears from the GitHub dashboard, even if it lingers in an open state. How can we query using the Github v4 GraphQL the open pull requests created by any members of a…
I am really struggling to get anything sensible out of the GitHub GraphQL api...
I want to get a list of repos and the permission levels for a team. So far I have
Q= """query {
organization(login: "MY_ORG") {
team(slug:"MY_TEAM") {
…
I'm trying to batch my GraphQL queries to retrieve the data I need from multiple repositories with the same request, where each repository has a different cursor.
Assuming I have the IDs of 3 nodes and only 2 cursors with the following…
I'm trying to use GitHub's GraphQL API to find a list of repos matching a query but limited to a specific language. However, I can't find anything in the docs relating to the multi variable language filter the typical online search supports or how…
I'm new to Github API v3 (rest) & v4 (graphql).
I have created a PAT (personal access token) and using it to fetch data from github - organization private repositories.
While able to get other users data (event, commits, issues etc.) in my…
I'm trying to query the branch protection rules which has the similar patterns using wildcards. Any suggestion are welcome.
query {
repository(owner:"user",name: "repo") {
branchProtectionRules(first: 10) {
nodes {
pattern
…
I know that I can use the Deployments field of a GitHub GraphQL Repository object to check if the repository uses GitHub pages - but if a repository has multiple deployments strategies (if that's even possible?), one might have to paginate through…
Is it possible to get the contributors to a repository using GitHub's graphql api? I've been searching in the explorer and I can't find a contributor property or anything like that on the Repository node.
However, it seems that given a user, the…
I have just started learning graphql and I created a query that returns a list of first 10 closed issues along with some attributes. To my surprise, the response objects in JSON that I get are sometimes empty and sometimes they are non empty. The…
I'm trying to get all recent branches and their first commit details. I came up with this query :
query ($owner: String!, $repo: String!, $after: String!) {
repository(owner: $owner, name: $repo) {
tags: refs(refPrefix: "refs/heads/", first:…
I would like to get commit details for a specific commit given that I already have the commit id
for example, if I know the commit id is
12762b76cba8ac4623a6c16e1fe60efafa3b7d1c and the repo is ruby/ruby
how do I get the committedDate and author…
I want to list all the commits between 2 tags
If i try to get commits between 2 dates on which tags point, i even get the commits from other branch which was merged after 2nd commit but made between those 2 dates.
I will like to get some thing…
I am trying to get list of all commits between 2 given cursors.
I have tried to use before and after argument for history
ref(qualifiedName: $branch) {
target {
... on Commit {
history(after:$firstCommit, before: $lastCommit) {
…
I am trying to get a count of files that have been changed for a given date range (monthly report).
I am able to get a commit count pretty easily with GitHub's API V4. I modified that query to also get a count of changed files in each commit and I…