Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 27, 2026

Pull Requests were missing labels in their response data, while Issues already included them.

Changes

  • PullRequest struct: Added Labels field with GraphQL query labels(first: 100)
  • DataFrame output: Added labels field as json.RawMessage array in Frames()
  • Tests: Updated test fixtures with label data

Implementation

Mirrors the existing Issues pattern:

Labels struct {
    Nodes []struct {
        Name string
    }
} `graphql:"labels(first: 100)"`

Labels are marshaled to JSON arrays and appended to the DataFrame, enabling label-based filtering and visualization in Grafana dashboards.

Original prompt

This section details on the original issue you should resolve

<issue_title>Feature Request: Add Labels to Pull Requests Response</issue_title>
<issue_description>In the same with Issues does, it would be nice to have the array of labels returned with Pull Requests.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@CLAassistant
Copy link

CLAassistant commented Jan 27, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Co-authored-by: zoltanbedi <13729989+zoltanbedi@users.noreply.github.com>
Copilot AI changed the title [WIP] Add labels to pull request response Add labels field to Pull Requests response Jan 27, 2026
Copilot AI requested a review from zoltanbedi January 27, 2026 10:42
@zoltanbedi zoltanbedi marked this pull request as ready for review January 27, 2026 11:07
@zoltanbedi zoltanbedi requested a review from a team as a code owner January 27, 2026 11:07
Copy link
Member

@zoltanbedi zoltanbedi left a comment

Choose a reason for hiding this comment

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

LGTM

Image

@zoltanbedi zoltanbedi enabled auto-merge (squash) January 27, 2026 11:19
@zoltanbedi zoltanbedi merged commit bd35c60 into main Jan 27, 2026
19 of 20 checks passed
@zoltanbedi zoltanbedi deleted the copilot/add-labels-to-pull-requests branch January 27, 2026 11:29
Copilot AI restored the copilot/add-labels-to-pull-requests branch January 27, 2026 11:29
Copilot AI requested a review from yesoreyeram January 27, 2026 11:29
Copilot stopped work on behalf of yesoreyeram due to an error January 27, 2026 11:29
@zoltanbedi zoltanbedi deleted the copilot/add-labels-to-pull-requests branch January 27, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add Labels to Pull Requests Response

4 participants