Skip to content

Instantly share code, notes, and snippets.

@huitseeker
Created September 29, 2025 03:21
Show Gist options
  • Save huitseeker/2d889224f8b51f19c6f9c51ec3fda8e6 to your computer and use it in GitHub Desktop.
Save huitseeker/2d889224f8b51f19c6f9c51ec3fda8e6 to your computer and use it in GitHub Desktop.
ORG="0xmiden"
USER="huitseeker"
DATE="2025-09-22T00:00:00Z"
Q="org:$ORG is:pr reviewed-by:$USER"
gh api graphql --paginate -f query='
query ($q: String!, $cursor: String) {
search(type: ISSUE, query: $q, first: 100, after: $cursor) {
pageInfo { hasNextPage endCursor }
nodes {
... on PullRequest {
number
repository { nameWithOwner }
reviews(first: 100) {
nodes {
author { login }
submittedAt
}
}
}
}
}
}
' -F q="$Q" \
| jq -s --arg u "$USER" --arg d "$DATE" '
# collect PRs that have a review by $USER on/after $DATE
[ map(.data.search.nodes[])[]
| select(.reviews.nodes
| any(.author.login==$u and .submittedAt >= $d))
| "\(.repository.nameWithOwner)#\(.number)"
] | unique | length
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment