Graphql api get commit messages user made to all repos and branches for this weak

Hi,

I want to get to commit messages I made this week throughout every repo and branch.

I can find repos which I contributed to from some date with `contributionsCollection(from: $fromDate) {

commitContributionsByRepository

}

but I don’t know how to get name of the branch the commit was made to or the commit message or any reference to commit.

Thanks in advance.

Hi @rudolfhladik,

Thank you for being here! You could try the following query for example:

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