Explorar el Código

Merge branch 'nafees/hotfixes' into dev

Mohammed Nafees hace 3 años
padre
commit
605e64f528
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      api/server/handlers/webhook/github_incoming.go

+ 2 - 2
api/server/handlers/webhook/github_incoming.go

@@ -209,8 +209,6 @@ func (c *GithubIncomingWebhookHandler) processPullRequestEvent(event *github.Pul
 						},
 					)
 
-					fmt.Printf("workflow runs for status - %s, err - %s\n", status, err.Error())
-
 					if err == nil {
 						fmt.Printf("workflow runs for status - %s, count - %d\n", status, runs.GetTotalCount())
 
@@ -222,6 +220,8 @@ func (c *GithubIncomingWebhookHandler) processPullRequestEvent(event *github.Pul
 							}
 						}
 					} else {
+						fmt.Printf("workflow runs for status - %s, err - %s\n", status, err.Error())
+
 						errChan <- fmt.Errorf("error listing workflows for status %s: %w", status, err)
 					}