Navigation Menu

Skip to content

filter history by author #24426

Discussion options

You must be logged in to vote

@nikhedonia It looks like you are currently trying to filter by a databaseId. Instead you should filter by the user id. You can get the user id if you know the username like:

{
  user(login: "nikhedonia") {
    id # MDQ6VXNlcjQ2NzAwNTU=
  }
}

The user id for the username “nikhedonia” is “MDQ6VXNlcjQ2NzAwNTU=”. You can now filter commits by user id:

history(first: 5, author: {id: "MDQ6VXNlcjQ2NzAwNTU="}) {

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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