From eca77c8df030e297090324ef2a486e1775c76bb2 Mon Sep 17 00:00:00 2001 From: Hans Kristian Flaatten Date: Thu, 3 Nov 2022 10:21:17 +0100 Subject: [PATCH] Bump dependencis and add debug --- ci.go | 2 ++ notifier/github/comment.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ci.go b/ci.go index 28930e1..a1e78b0 100644 --- a/ci.go +++ b/ci.go @@ -165,6 +165,8 @@ func githubActions() (ci CI, err error) { ci.PR.Number = pr } + fmt.Printf("ci: %+v, err: %v, os.Getenv(GITHUB_REF): %v, os.Getenv(GITHUB_SHA): %v", ci, err, os.Getenv("GITHUB_REF"), os.Getenv("GITHUB_SHA")) + return ci, err } diff --git a/notifier/github/comment.go b/notifier/github/comment.go index eaf61f0..e47de59 100644 --- a/notifier/github/comment.go +++ b/notifier/github/comment.go @@ -20,6 +20,8 @@ type PostOptions struct { // Post posts comment func (g *CommentService) Post(body string, opt PostOptions) error { + fmt.Printf("%v", opt) + if opt.Number != 0 { _, _, err := g.client.API.IssuesCreateComment( context.Background(),