Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

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

Merged
Abhi347 merged 2 commits intospotify:masterspotify/github-java-client:masterfrom
sindunuragarp:fix/missing-pr-item-fieldssindunuragarp/github-java-client:fix/missing-pr-item-fieldsCopy head branch name to clipboard
Nov 24, 2025
Merged

fix: move draft, automerge & labels fields to PullRequestItem#240
Abhi347 merged 2 commits intospotify:masterspotify/github-java-client:masterfrom
sindunuragarp:fix/missing-pr-item-fieldssindunuragarp/github-java-client:fix/missing-pr-item-fieldsCopy head branch name to clipboard

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
@Abhi347 Abhi347 merged commit ea844c2 into spotify:master Nov 24, 2025
3 checks passed
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.