Created
September 29, 2025 03:21
-
-
Save huitseeker/2d889224f8b51f19c6f9c51ec3fda8e6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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