Add project secret & bug fix

This commit is contained in:
simon987
2019-02-19 19:38:54 -05:00
parent 94c3ce3267
commit f235bfb588
27 changed files with 443 additions and 54 deletions

View File

@@ -214,6 +214,10 @@ type ReleaseTaskRequest struct {
Verification int64 `json:"verification"`
}
func (r *ReleaseTaskRequest) IsValid() bool {
return r.TaskId != 0
}
type ReleaseTaskResponse struct {
Updated bool `json:"updated"`
}
@@ -276,3 +280,11 @@ type Info struct {
Name string `json:"name"`
Version string `json:"version"`
}
type SetSecretRequest struct {
Secret string `json:"secret"`
}
type GetSecretResponse struct {
Secret string `json:"secret"`
}