Skip to content

Instantly share code, notes, and snippets.

@liuyangc3
Last active March 12, 2022 01:49
Show Gist options
  • Save liuyangc3/728ced73e0cc9e87b1286282e2b9dab6 to your computer and use it in GitHub Desktop.
Save liuyangc3/728ced73e0cc9e87b1286282e2b9dab6 to your computer and use it in GitHub Desktop.
using Github graphql API to get all MR in a repo
query {
repository(name: "zen", owner: "HorizenOfficial") {
pullRequests(first: 100, states: [MERGED], orderBy: {field: CREATED_AT, direction: DESC}) {
totalCount
nodes {
title
state
checksUrl
mergedAt
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment