-
Notifications
You must be signed in to change notification settings - Fork 10
Added more stats to the query #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I tested on a dummy repo j-bowhay/test#1 and the output looks pretty straight forward
[
{
"cursor": "Y3Vyc29yOnYyOpK5MjAyNS0wNS0xMVQyMzo1NjoyMSswMTowMM62G8uH",
"node": {
"number": 1,
"title": "test",
"createdAt": "2025-05-11T22:56:21Z",
"updatedAt": "2025-05-11T22:56:21Z",
"closedAt": null,
"state": "OPEN",
"url": "https://github.com/j-bowhay/test/issues/1",
"reactionGroups": [
{
"content": "THUMBS_UP",
"users": {
"totalCount": 1
}
},
{
"content": "THUMBS_DOWN",
"users": {
"totalCount": 0
}
},
{
"content": "LAUGH",
"users": {
"totalCount": 0
}
},
{
"content": "HOORAY",
"users": {
"totalCount": 0
}
},
{
"content": "CONFUSED",
"users": {
"totalCount": 0
}
},
{
"content": "HEART",
"users": {
"totalCount": 0
}
},
{
"content": "ROCKET",
"users": {
"totalCount": 0
}
},
{
"content": "EYES",
"users": {
"totalCount": 0
}
}
],
"labels": {
"edges": []
},
"timelineItems": {
"totalCount": 0,
"edges": []
}
}
}
]
| reactionGroups { | ||
| content | ||
| users { | ||
| totalCount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I screwed that up. Should be fixed now.
| closedAt | ||
| baseRefName | ||
| mergeable | ||
| labels(first: 100) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the limit here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was just to match the same limit as for the issue query. There is no real reason for it otherwise.
stefanv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to merge updates to the query; let me know when you're ready.
We now get labels per PR, and reactions (aka emojis) for the issues.
This will make scientific-python/summit-2025#36 possible.