diff --git a/out_command.go b/out_command.go index 768bb2c..40220b9 100644 --- a/out_command.go +++ b/out_command.go @@ -52,7 +52,7 @@ func (c *OutCommand) Run(sourceDir string, request OutRequest) (OutResponse, err } } - draft := request.Params.Draft + draft := request.Source.Drafts release := &github.RepositoryRelease{ Name: github.String(name), diff --git a/out_command_test.go b/out_command_test.go index 1d38114..2fa92a4 100644 --- a/out_command_test.go +++ b/out_command_test.go @@ -221,7 +221,7 @@ var _ = Describe("Out Command", func() { BeforeEach(func() { bodyPath := filepath.Join(sourcesDir, "body") file(bodyPath, "this is a great release") - request.Params.Draft = true + request.Source.Drafts = true }) It("creates a release on GitHub in draft mode", func() { diff --git a/resources.go b/resources.go index 65685c5..ce5ab74 100644 --- a/resources.go +++ b/resources.go @@ -41,7 +41,6 @@ type OutParams struct { BodyPath string `json:"body"` TagPath string `json:"tag"` CommitishPath string `json:"commitish"` - Draft bool `json:"draft"` Globs []string `json:"globs"` }