Skip to content

Commit

Permalink
debug some panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Oded-B committed Jul 1, 2024
1 parent b2ed2bc commit e4cbcad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/pkg/githubapi/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ func handleCommentPrEvent(ghPrClientDetails GhPrClientDetails, ce *github.IssueC
_, _ = ghPrClientDetails.GetSHA()

checkboxPattern := `(?m)^\s*-\s*\[(.)\]\s*<!-- telefonistka-argocd-branch-sync -->.*$`
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")
Expand Down

0 comments on commit e4cbcad

Please sign in to comment.