Skipping resolveTagToCommitSHA for drafts

This commit is contained in:
Anton Ustyuzhanin
2018-04-18 22:15:46 +02:00
parent 8bc116bec7
commit e420eea591

View File

@@ -66,6 +66,7 @@ func (c *InCommand) Run(destDir string, request InRequest) (InResponse, error) {
return InResponse{}, err
}
if !request.Source.Drafts {
commitPath := filepath.Join(destDir, "commit_sha")
commitSHA, err = c.resolveTagToCommitSHA(*foundRelease.TagName)
if err != nil {
@@ -78,6 +79,7 @@ func (c *InCommand) Run(destDir string, request InRequest) (InResponse, error) {
return InResponse{}, err
}
}
}
if foundRelease.Body != nil && *foundRelease.Body != "" {
body := *foundRelease.Body