Skip to content

GraphQL - Get all commits by all users in all orgs with filtered date #24590

Discussion options

You must be logged in to vote

You can filter commit history by date using the since or until parameter to the history connection on Commit:

{
  search(query: "org:test", type: REPOSITORY, last: 100) {
    nodes {
      ... on Repository {
        name
        defaultBranchRef {
          name
          target {
            ... on Commit {
              history(first: 100, since: "2013-07-11T00:00:00") {
                totalCount
                nodes {
                  ... on Commit {
                    committedDate
                    additions
                    author {
                      name
                      email
                    }
                  }
                }
              }
           …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@maciekbanas
Comment options

@IAmHughes
Comment options

@maciekbanas
Comment options

@IAmHughes
Comment options

@maciekbanas
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants