Filter commits by author username instead of author id

I am able to get the latest commit by a specific user if I know their author.id like:

{
  repository(owner: "elastic", name: "kibana") {
    ref(qualifiedName: "master") {
      target {
        ... on Commit {
          history(first: 5, author: {id: "MDQ6VXNlcjIwOTk2Ng=="}) {
            nodes {
              messageHeadline
            }
          }
        }
      }
    }
  }
}

However, if all I have is their Github username I have to make an additional request to get the author.id:

{
  user(login: "sqren") {
    id
  }
}

Is there any way to do this in a single request, so I can avoid the extra roundtrip?

It would be awesome if I could specify the author by the author.login (username) like:

history(first: 5, author: {login: "sqren"}) {

Thanks!

Unfortunately, no, there currently isn’t a way to do what you’re asking. I’ll pass along the request for a way to do it, though I can’t promise when or even if it will be implemented.

I hope that helps!