diff --git a/internal/pkg/githubapi/github.go b/internal/pkg/githubapi/github.go index 36b4585f..4358695a 100644 --- a/internal/pkg/githubapi/github.go +++ b/internal/pkg/githubapi/github.go @@ -385,6 +385,8 @@ func handleCommentPrEvent(ghPrClientDetails GhPrClientDetails, ce *github.IssueC _, _ = ghPrClientDetails.GetSHA() checkboxPattern := `(?m)^\s*-\s*\[(.)\]\s*.*$` + ghPrClientDetails.PrLogger.Debugf("=== old body: %s\n", *ce.Changes.Body.From) + ghPrClientDetails.PrLogger.Debugf("=== new body: %s\n", *ce.Comment.Body) checkboxWaschecked, checkboxIsChecked := analyzeCommentUpdateCheckBox(*ce.Comment.Body, *ce.Changes.Body.From, checkboxPattern) if !checkboxWaschecked && checkboxIsChecked { ghPrClientDetails.PrLogger.Infof("Sync Checkbox was checked")