Skip to content

Commit

Permalink
Support line comments on PRs (#2833)
Browse files Browse the repository at this point in the history
Fixes: #2832 .
  • Loading branch information
varmakarthik12 authored Jul 18, 2023
1 parent 6c1dedd commit d783bb1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion github/github-stringify_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions github/pulls_comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ type PullRequestComment struct {
URL *string `json:"url,omitempty"`
HTMLURL *string `json:"html_url,omitempty"`
PullRequestURL *string `json:"pull_request_url,omitempty"`
// Can be one of: LINE, FILE from https://docs.github.com/en/rest/pulls/comments?apiVersion=2022-11-28#create-a-review-comment-for-a-pull-request
SubjectType *string `json:"subject_type,omitempty"`
}

func (p PullRequestComment) String() string {
Expand Down

0 comments on commit d783bb1

Please sign in to comment.