Add functionality to support Release and Prerelease together
This commit is contained in:
@@ -9,6 +9,7 @@ type Source struct {
|
||||
AccessToken string `json:"access_token"`
|
||||
Drafts bool `json:"drafts"`
|
||||
PreRelease bool `json:"pre_release"`
|
||||
Release bool `json:"release"`
|
||||
}
|
||||
|
||||
type CheckRequest struct {
|
||||
@@ -16,6 +17,12 @@ type CheckRequest struct {
|
||||
Version Version `json:"version"`
|
||||
}
|
||||
|
||||
func NewCheckRequest() CheckRequest {
|
||||
res := CheckRequest{}
|
||||
res.Source.Release = true
|
||||
return res
|
||||
}
|
||||
|
||||
type InRequest struct {
|
||||
Source Source `json:"source"`
|
||||
Version *Version `json:"version"`
|
||||
|
Reference in New Issue
Block a user