Skip to content

fix: move draft, automerge & labels fields to PullRequestItem #240

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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