support draft releases for in and out

* in will pull in the latest release, even if draft. It will not create
  the files `tag` and `version`, if no tag is defined on the draft
  release.
* out will push a release in a draft state when provided as a param

[#102513822]

Signed-off-by: David Morhovich <dmorhovich@pivotal.io>
This commit is contained in:
JT Archie
2015-10-20 17:47:08 -04:00
committed by David Morhovich
parent a7eb775171
commit b2eee37237
5 changed files with 122 additions and 12 deletions

View File

@@ -52,10 +52,13 @@ func (c *OutCommand) Run(sourceDir string, request OutRequest) (OutResponse, err
}
}
draft := request.Params.Draft
release := &github.RepositoryRelease{
Name: github.String(name),
TagName: github.String(tag),
Body: github.String(body),
Draft: github.Bool(draft),
TargetCommitish: github.String(targetCommitish),
}