Skip to content

Commit

Permalink
Check if release is draft directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Ustyuzhanin committed May 18, 2018
1 parent dc9ba97 commit f211b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion in_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f211b54

Please sign in to comment.