Skip to content

Conversation

@nabobalis
Copy link
Member

We now get labels per PR, and reactions (aka emojis) for the issues.

This will make scientific-python/summit-2025#36 possible.

Copy link
Member

@j-bowhay j-bowhay left a 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation?

Copy link
Member Author

@nabobalis nabobalis May 12, 2025

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the limit here?

Copy link
Member Author

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.

Copy link
Member

@stefanv stefanv left a 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.

@nabobalis nabobalis added the type: Enhancement New feature or request label May 12, 2025
@nabobalis nabobalis merged commit 6aac187 into scientific-python:main May 12, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants