PullRequestComment

class github.PullRequestComment.PullRequestComment

This class represents PullRequestComments. The reference can be found here https://docs.github.com/en/rest/reference/pulls#review-comments

body
Type:string
commit_id
Type:string
created_at
Type:datetime.datetime
diff_hunk
Type:string
id
Type:integer
in_reply_to_id
Type:integer
original_commit_id
Type:string
original_position
Type:integer
path
Type:string
position
Type:integer
pull_request_url
Type:string
updated_at
Type:datetime.datetime
url
Type:string
html_url
Type:string
user
Type:github.NamedUser.NamedUser
delete()
Calls:DELETE /repos/{owner}/{repo}/pulls/comments/{number}
Return type:None
edit(body)
Calls:PATCH /repos/{owner}/{repo}/pulls/comments/{number}
Parameters:body – string
Return type:None
get_reactions()
Calls:GET /repos/{owner}/{repo}/pulls/comments/{number}/reactions
Returns:
class:github.PaginatedList.PaginatedList of github.Reaction.Reaction
create_reaction(reaction_type)
Calls:POST /repos/{owner}/{repo}/pulls/comments/{number}/reactions
Parameters:reaction_type – string
Return type:github.Reaction.Reaction
delete_reaction(reaction_id)
Calls:DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}
Parameters:reaction_id – integer
Return type:bool