Skip to content

Commit

Permalink
ignore comments on github issues (#1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes authored Sep 12, 2024
1 parent 1f192d5 commit 8c13c7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/controllers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,12 @@ func handleIssueCommentEvent(gh utils.GithubClientProvider, payload *github.Issu
actor := *payload.Sender.Login
commentBody := *payload.Comment.Body
defaultBranch := *payload.Repo.DefaultBranch
isPullRequest := payload.Issue.IsPullRequest()

if !isPullRequest {
log.Printf("comment not on pullrequest, ignroning")
return nil
}

link, err := models.DB.GetGithubAppInstallationLink(installationId)
if err != nil {
Expand Down

0 comments on commit 8c13c7c

Please sign in to comment.