Make in tests support prerelease data type
This commit is contained in:
@@ -58,22 +58,24 @@ var _ = Describe("In Command", func() {
|
|||||||
|
|
||||||
buildRelease := func(id int, tag string, draft bool) *github.RepositoryRelease {
|
buildRelease := func(id int, tag string, draft bool) *github.RepositoryRelease {
|
||||||
return &github.RepositoryRelease{
|
return &github.RepositoryRelease{
|
||||||
ID: github.Int(id),
|
ID: github.Int(id),
|
||||||
TagName: github.String(tag),
|
TagName: github.String(tag),
|
||||||
HTMLURL: github.String("http://google.com"),
|
HTMLURL: github.String("http://google.com"),
|
||||||
Name: github.String("release-name"),
|
Name: github.String("release-name"),
|
||||||
Body: github.String("*markdown*"),
|
Body: github.String("*markdown*"),
|
||||||
Draft: github.Bool(draft),
|
Draft: github.Bool(draft),
|
||||||
|
Prerelease: github.Bool(false),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buildNilTagRelease := func(id int) *github.RepositoryRelease {
|
buildNilTagRelease := func(id int) *github.RepositoryRelease {
|
||||||
return &github.RepositoryRelease{
|
return &github.RepositoryRelease{
|
||||||
ID: github.Int(id),
|
ID: github.Int(id),
|
||||||
HTMLURL: github.String("http://google.com"),
|
HTMLURL: github.String("http://google.com"),
|
||||||
Name: github.String("release-name"),
|
Name: github.String("release-name"),
|
||||||
Body: github.String("*markdown*"),
|
Body: github.String("*markdown*"),
|
||||||
Draft: github.Bool(true),
|
Draft: github.Bool(true),
|
||||||
|
Prerelease: github.Bool(false),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user