From f211b5478b828f5c4626ffa992b00aa33a48f69c Mon Sep 17 00:00:00 2001 From: Anton Ustyuzhanin Date: Fri, 18 May 2018 10:42:13 +0200 Subject: [PATCH] Check if release is draft directly --- in_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/in_command.go b/in_command.go index da272b8..20b340e 100644 --- a/in_command.go +++ b/in_command.go @@ -66,7 +66,7 @@ func (c *InCommand) Run(destDir string, request InRequest) (InResponse, error) { return InResponse{}, err } - if !request.Source.Drafts { + if foundRelease.Draft != nil && !*foundRelease.Draft { commitPath := filepath.Join(destDir, "commit_sha") commitSHA, err = c.resolveTagToCommitSHA(*foundRelease.TagName) if err != nil {