Skip to content

Comment

Import from pyfj or pyfj.models as Comment.

Comment

Comment represents a comment on a commit or issue

assets

assets: list[Attachment] | None = Field(default=None, description='The attachments to the comment')

body

body: str | None = Field(default=None, description='The body of the comment')

created_at

created_at: datetime | None = Field(default=None, description="The time of the comment's creation")

html_url

html_url: str | None = Field(default=None, description='The HTML URL of the comment')

id

id: int | None = Field(default=None, description='The identifier of the comment')

issue_url

issue_url: str | None = Field(
    default=None, description="The HTML URL of the issue if the comment is posted on an issue, else empty string"
)

original_author

original_author: str | None = Field(
    default=None,
    description="The original author that posted the comment if it was not posted locally, else empty string",
)

original_author_id

original_author_id: int | None = Field(
    default=None,
    description="The ID of the original author that posted the comment if it was not posted locally, else 0",
)

pull_request_url

pull_request_url: str | None = Field(
    default=None,
    description="The HTML URL of the pull request if the comment is posted on a pull request, else empty string",
)

updated_at

updated_at: datetime | None = Field(default=None, description="The time of the comment's update")

user

user: User | None = None

Used by

Namespace Operations
repos.issues.comments create · get · list · list_all · update · update_for_issue