@@ -81,6 +81,8 @@ func (p *Planner) checkPRCommits(ctx context.Context, pr *pr, commitsInfo []repo
8181 return nil , nil
8282 }
8383
84+ fmt .Println (p .ClusterEnvName , pr , commit .Hash , module .Spec .Path , module .NamespacedName ())
85+
8486 // request run
8587 p .Log .Info ("triggering plan due to new commit" , "module" , module .NamespacedName (), "pr" , pr .Number , "author" , pr .Author .Login )
8688 return p .addNewRequest (module , pr , commit .Hash )
@@ -104,7 +106,7 @@ func (p *Planner) checkPRCommentsForPlanRequests(pr *pr, module *tfaplv1beta1.Mo
104106 }
105107
106108 // Skip if terraform plan output is already posted
107- commentCluster , commentModule , commentPath , _ = parseRunOutputMsg (comment .Body )
109+ commentCluster , commentModule , commentPath , _ = ParseRunOutputMsg (comment .Body )
108110 if commentCluster == p .ClusterEnvName &&
109111 commentModule == module .NamespacedName () &&
110112 commentPath == module .Spec .Path {
@@ -139,7 +141,7 @@ func isPlanOutputPostedForCommit(cluster string, pr *pr, commitID, modulePath st
139141 for i := len (pr .Comments .Nodes ) - 1 ; i >= 0 ; i -- {
140142 comment := pr .Comments .Nodes [i ]
141143
142- commentCluster , commentModule , commentPath , commentCommitID := parseRunOutputMsg (comment .Body )
144+ commentCluster , commentModule , commentPath , commentCommitID := ParseRunOutputMsg (comment .Body )
143145 if commentCluster == cluster && commentModule == module && commentPath == modulePath && commentCommitID == commitID {
144146 return true
145147 }
0 commit comments