Skip to content

Commit

Permalink
Create an issue comment, not a PR comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
craigjbass committed Nov 14, 2022
1 parent b8f4392 commit 3fb116b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/action/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (g GitHubPresenter) PostComment(comment dealWithPullRequest.Comment) {
owner := splitRepository[0]
repo := splitRepository[1]
context.Background()
_, _, err := g.client.PullRequests.CreateComment(context.Background(), owner, repo, int(comment.Number), &github.PullRequestComment{
_, _, err := g.client.Issues.CreateComment(context.Background(), owner, repo, int(comment.Number), &github.IssueComment{
Body: &comment.Body,
})
if err != nil {
Expand Down

0 comments on commit 3fb116b

Please sign in to comment.