diff --git a/internal/gateway/github_client.go b/internal/gateway/github_client.go index aade3a5..0d218fc 100644 --- a/internal/gateway/github_client.go +++ b/internal/gateway/github_client.go @@ -72,6 +72,8 @@ func (c *GitHubClient) GetPipeline(id string, pid int) (*Pipeline, error) { func workflowToPipeline(wf *github.WorkflowRun) *Pipeline { status := wf.GetStatus() + fmt.Printf("status: %v\n", status) + fmt.Printf("wf.Conclusion: %v\n", wf.Conclusion) if status == "completed" && wf.Conclusion != nil { status = wf.GetConclusion() } diff --git a/main.go b/main.go index cb963de..ae08afa 100644 --- a/main.go +++ b/main.go @@ -85,6 +85,7 @@ func run(svc *checker.Service, pollFrequency time.Duration) error { statusCh, _ := svc.PollPipelineStatus(pipeline.ProjectID, pipeline.ID, pollFrequency) for s := range statusCh { if s == "" { + fmt.Print("Status is empty\n") continue }