Skip to content

Conversation

sindunuragarp
Copy link
Contributor

@sindunuragarp sindunuragarp commented Jun 23, 2025

The fields draft, automerge & labels are now defined as part of the PullRequest object. However, PullRequestItem which is the object returned when listing PRs, also has them.

This PR moves the fields from PullRequest object to the PullRequestItem object. Filtering a list of PRs by labels is a common use case, and this fix would accommodate that.

Reference documentation: https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests

@sindunuragarp sindunuragarp changed the title fix: move draft & labels fields to PullRequestItem fix: move draft, automerge & labels fields to PullRequestItem Jun 23, 2025
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.

1 participant