Skip to main content

PullRequestNode

Represents a GitHub pull request with its metadata and interactions.

Attributes

AttributeTypeDescription
numberintThe unique identification number assigned to the pull request within the repository.
labels[Labels](labels.md?sid=actions_people_people_labels)A collection of labels applied to the pull request for categorization and filtering.
author`AuthorNone` = null
titlestrThe descriptive headline of the pull request summarizing the proposed changes.
createdAtdatetimeThe timestamp indicating exactly when the pull request was initially opened.
statestrThe current status of the pull request, typically indicating if it is open, closed, or merged.
comments[Comments](comments.md?sid=actions_people_people_comments)A container for all discussion comments posted on the pull request thread.
reviews[Reviews](reviews.md?sid=actions_people_people_reviews)A collection of formal review responses and approvals submitted by repository contributors.

Constructor

Signature

def PullRequestNode(
number: int,
labels: [Labels](labels.md?sid=actions_people_people_labels),
author: Author | None = None,
title: str,
createdAt: datetime,
state: str,
comments: [Comments](comments.md?sid=actions_people_people_comments),
reviews: [Reviews](reviews.md?sid=actions_people_people_reviews)
) - > null

Parameters

NameTypeDescription
numberintThe unique identifier number of the pull request.
labels[Labels](labels.md?sid=actions_people_people_labels)A collection of labels associated with the pull request.
author`AuthorNone` = None
titlestrThe title of the pull request.
createdAtdatetimeThe timestamp when the pull request was created.
statestrThe current state of the pull request (e.g., open, closed, merged).
comments[Comments](comments.md?sid=actions_people_people_comments)A collection of comments made on the pull request.
reviews[Reviews](reviews.md?sid=actions_people_people_reviews)A collection of reviews submitted for the pull request.

Signature

def PullRequestNode(
number: int,
labels: [Labels](labels.md?sid=actions_people_people_labels),
author: Author | None,
title: str,
createdAt: datetime,
state: str,
comments: [Comments](comments.md?sid=actions_people_people_comments),
reviews: [Reviews](reviews.md?sid=actions_people_people_reviews)
) - > null

Parameters

NameTypeDescription
numberintThe unique identification number assigned to the pull request by GitHub
labels[Labels](labels.md?sid=actions_people_people_labels)A collection of tags applied to the pull request for categorization and filtering
author`AuthorNone`
titlestrThe descriptive headline of the pull request summarizing the proposed changes
createdAtdatetimeThe timestamp indicating when the pull request was originally opened
statestrThe current status of the pull request, such as 'OPEN', 'CLOSED', or 'MERGED'
comments[Comments](comments.md?sid=actions_people_people_comments)A container for the discussion threads and individual comments posted on the pull request
reviews[Reviews](reviews.md?sid=actions_people_people_reviews)The set of formal code reviews and approval statuses submitted by project collaborators