diff --git a/internal/pkg/githubapi/github.go b/internal/pkg/githubapi/github.go index 96bc94a..99b02ae 100644 --- a/internal/pkg/githubapi/github.go +++ b/internal/pkg/githubapi/github.go @@ -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)