PullRequestNode
Represents a GitHub pull request with its metadata and interactions.
Attributes
| Attribute | Type | Description |
|---|---|---|
| number | int | The 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 | `Author | None` = null |
| title | str | The descriptive headline of the pull request summarizing the proposed changes. |
| createdAt | datetime | The timestamp indicating exactly when the pull request was initially opened. |
| state | str | The 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
| Name | Type | Description |
|---|---|---|
| number | int | The 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 | `Author | None` = None |
| title | str | The title of the pull request. |
| createdAt | datetime | The timestamp when the pull request was created. |
| state | str | The 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
| Name | Type | Description |
|---|---|---|
| number | int | The 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 | `Author | None` |
| title | str | The descriptive headline of the pull request summarizing the proposed changes |
| createdAt | datetime | The timestamp indicating when the pull request was originally opened |
| state | str | The 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 |