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(),