Last active
March 12, 2022 01:49
-
-
Save liuyangc3/728ced73e0cc9e87b1286282e2b9dab6 to your computer and use it in GitHub Desktop.
using Github graphql API to get all MR in a repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
https://api.github.com/graphql
https://docs.github.com/en/graphql/overview/explorer