remove draft releases from resource check command
[#102513822] Signed-off-by: Toby Rumans <trumans@pivotal.io>
This commit is contained in:
@@ -5,9 +5,26 @@ import (
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
"github.com/zachgersh/go-github/github"
|
||||
)
|
||||
|
||||
func TestGithubReleaseResource(t *testing.T) {
|
||||
RegisterFailHandler(Fail)
|
||||
RunSpecs(t, "Github Release Resource Suite")
|
||||
}
|
||||
|
||||
func newRepositoryRelease(version string) github.RepositoryRelease {
|
||||
draft := false
|
||||
return github.RepositoryRelease{
|
||||
TagName: github.String(version),
|
||||
Draft: &draft,
|
||||
}
|
||||
}
|
||||
|
||||
func newDraftRepositoryRelease(version string) github.RepositoryRelease {
|
||||
draft := true
|
||||
return github.RepositoryRelease{
|
||||
TagName: github.String(version),
|
||||
Draft: &draft,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user