@@ -39,10 +39,10 @@ type commentKey struct {
3939
4040// postReviewComments posts review comments to specific lines in the PR diff. If a bot comment
4141// already exists at the same file/line, it is updated instead of creating a duplicate.
42- func postReviewComments (ctx context.Context , prNumber uint , gitCommitID string , comments ... prReviewComment ) error {
42+ func postReviewComments (ctx context.Context , prNumber int , gitCommitID string , comments ... prReviewComment ) error {
4343 client := githubutil .NewClient (ctx )
4444
45- existingPRComments , err := listExistingBotComments (ctx , client , int ( prNumber ) )
45+ existingPRComments , err := listExistingBotComments (ctx , client , prNumber )
4646 if err != nil {
4747 return fmt .Errorf ("list existing bot comments: %w" , err )
4848 }
@@ -55,7 +55,7 @@ func postReviewComments(ctx context.Context, prNumber uint, gitCommitID string,
5555 errsPosting = append (errsPosting , fmt .Errorf ("updating existing comment in %v: %w" , key , err ))
5656 }
5757 } else {
58- if err := postSingleReviewComment (ctx , client , int ( prNumber ) , gitCommitID , comment ); err != nil {
58+ if err := postSingleReviewComment (ctx , client , prNumber , gitCommitID , comment ); err != nil {
5959 errsPosting = append (errsPosting , fmt .Errorf ("posting new comment in %v: %w" , key , err ))
6060 }
6161 }
@@ -107,10 +107,10 @@ func postSingleReviewComment(ctx context.Context, client *githubutil.Client, prN
107107 string (githubutil .GithubRepoModules ),
108108 prNumber ,
109109 & github.PullRequestComment {
110- CommitID : github . String ( gitCommitID ) ,
111- Path : github . String ( comment .filePath ) ,
112- Line : github . Int ( comment .lineNumber ) ,
113- Body : github . String ( body ) ,
110+ CommitID : & gitCommitID ,
111+ Path : & comment .filePath ,
112+ Line : & comment .lineNumber ,
113+ Body : & body ,
114114 },
115115 )
116116 if err != nil {
@@ -127,7 +127,7 @@ func updateReviewComment(ctx context.Context, client *githubutil.Client, prComme
127127 string (githubutil .GithubRepoModules ),
128128 prCommentID ,
129129 & github.PullRequestComment {
130- Body : github . String ( body ) ,
130+ Body : & body ,
131131 },
132132 )
133133 if err != nil {
0 commit comments