Skip to content

Commit

Permalink
Add logging around generating diff comment (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvarts authored Dec 13, 2024
1 parent 8439b61 commit 3574956
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/pkg/githubapi/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ func handleChangedPREvent(ctx context.Context, mainGithubClientPair GhClientPair
}

diffCommentData.DisplaySyncBranchCheckBox = shouldSyncBranchCheckBoxBeDisplayed(componentPathList, config.Argocd.AllowSyncfromBranchPathRegex, diffOfChangedComponents)

componentsToDiffJSON, _ := json.Marshal(componentsToDiff)
log.Infof("Generating ArgoCD Diff Comment for components: %+v, length of diff elements: %d", string(componentsToDiffJSON), len(diffCommentData.DiffOfChangedComponents))
comments, err := generateArgoCdDiffComments(diffCommentData, githubCommentMaxSize)
if err != nil {
return fmt.Errorf("generate diff comment: %w", err)
Expand Down

0 comments on commit 3574956

Please sign in to comment.