Skip to content

Commit

Permalink
Test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gregfurman committed Apr 27, 2024
1 parent fae783d commit 23ebbb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/gateway/github_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 75 in internal/gateway/github_client.go

View workflow job for this annotation

GitHub Actions / build

use of `fmt.Printf` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
fmt.Printf("wf.Conclusion: %v\n", wf.Conclusion)

Check failure on line 76 in internal/gateway/github_client.go

View workflow job for this annotation

GitHub Actions / build

use of `fmt.Printf` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
if status == "completed" && wf.Conclusion != nil {

Check failure on line 77 in internal/gateway/github_client.go

View workflow job for this annotation

GitHub Actions / build

if statements should only be cuddled with assignments (wsl)
status = wf.GetConclusion()
}
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Check failure on line 88 in main.go

View workflow job for this annotation

GitHub Actions / build

use of `fmt.Print` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
continue

Check failure on line 89 in main.go

View workflow job for this annotation

GitHub Actions / build

continue with no blank line before (nlreturn)
}

Expand Down

0 comments on commit 23ebbb3

Please sign in to comment.