Skip to content
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

docs: Add clarifications for mergeable field in pull requests #3396

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

acouvreur
Copy link
Contributor

Comparing the OpenAPI spec for pull requests shows that these fields are not populated when listing (right), but they are through GET or webhook:
image

In their OpenAPI Spec they have pull-request and pull-request-simple definitions.

I think that would make sense to also have these structs instead of relying on comments for contextual field population.

@gmlewis gmlewis changed the title docs: add clarifications for mergeable field in pull requests docs: Add clarifications for mergeable field in pull requests Dec 21, 2024
RequestedReviewers []*User `json:"requested_reviewers,omitempty"`
AutoMerge *PullRequestAutoMerge `json:"auto_merge,omitempty"`

// Merged is not populated by List operation.
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is unnecessary and overly verbose to individually list each field's name separately.
Instead, please simply make this a block with a single comment at the top, like this:

Suggested change
// Merged is not populated by List operation.
// These fields are not populated by the List operation.

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