Merge pull request #44 from rowbawts/dev

Ok testing again
This commit is contained in:
Sebastian Cabrera 2023-08-29 22:01:20 -04:00 committed by GitHub
commit 82553722ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,9 @@ func processPullRequestEvent(event *github.PullRequestEvent) {
if err != nil {
log.Println("Error creating comment:", err)
}
} else if event.GetAction() == "merged" {
} else if event.Action != nil && *event.Action == "closed" && event.PullRequest.Merged != nil && *event.PullRequest.Merged {
log.Println(approvals)
delete(approvals, prNumber)
log.Println(approvals)
}
}