Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

+github graphql api get commits from repo

// 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
                }
              }
            }
          }
        }
      }
    }
  }
}
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #graphql #api #commits #repo
ADD COMMENT
Topic
Name
3+3 =