+github graphql api get commits from repo

The solution for “+github graphql api get commits from repo” can be found here. The following code will assist you in solving the problem.

// Get commits from a repository’s branch using GitHub GraphQL API:
{
repository(name: “sickvim”, owner: “jonathansick”) {
ref(qualifiedName: “master”) {
target {
… on Commit {
id
history(first: 5) {
pageInfo {
hasNextPage
}
edges {
node {
messageHeadline
oid
message
author {
name
email
date
}
}
}
}
}
}
}
}
}

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in