Skip to content

Commit

Permalink
Use comemnt sender login to check in event was triggered by Telefonistka
Browse files Browse the repository at this point in the history
itself.
Comment.User.Login isn't relevant when editing a comment made by someone
else
  • Loading branch information
Oded-B committed Jun 28, 2024
1 parent 63325cd commit f9b06af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/githubapi/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func handleEvent(eventPayloadInterface interface{}, mainGhClientCache *lru.Cache
"repo": *eventPayload.Repo.Owner.Login + "/" + *eventPayload.Repo.Name,
"prNumber": *eventPayload.Issue.Number,
})
if *eventPayload.Comment.User.Login != botIdentity {
if *eventPayload.Sender.Login != botIdentity {
ghPrClientDetails := GhPrClientDetails{
Ctx: ctx,
GhClientPair: &mainGithubClientPair,
Expand Down

0 comments on commit f9b06af

Please sign in to comment.