I am using below graphql query to get all commits details on a given branch in repo. But in many cases it is returning user field in committer and author as NULL.
query {
repository(owner: "%s", name: "%s") {
ref(qualifiedName: "refs/heads/%s") {
target {
... on Commit {
history(first: 100) {
pageInfo {
endCursor
hasNextPage
}
nodes {
oid
committedDate
author {
user {
id
login
}
}
committer {
user {
id
login
}
}
}
}
}
}
}
}
}
Some of the cases I noticed:
person had different username and email in local, compared to github
a person was removed from organisation i.e. removed access for the repo.
In both cases, is it possible to get id or login of the committer?
I am using below graphql query to get all commits details on a given branch in repo. But in many cases it is returning user field in committer and author as NULL.
Some of the cases I noticed:
In both cases, is it possible to get id or login of the committer?