User info null on Commit Timeline Events

schema-request

#1

Sometimes when querying the user attributes on a Commit in the Timeline Event for one of my private repos, I get null values:

{
              "__typename": "Commit",
              "committer": {
                "user": null
              },
              "author": {
                "user": null
              }
            }

It this expected? Here’s a minimal example of the query I am running:

{
  repository(name: "rails", owner: "rails") {
    pullRequests(last: 1) {
      nodes {
        pr_number: number
        title
        timeline(last: 100) {
          nodes {
            ... on Commit {
              committer {
                user {
                  name
                  login
                }
              }
              author {
                user {
                  name
                  login
                }
              }
            }
          }
        }
      }
    }
  }
}


#2

I answered my own question. When a commit has an email that is not associated to an account, it cannot connect it with an account’s name & login.