make Release.Target a required parameter (#133)

This commit is contained in:
Norwin 2018-12-05 00:03:21 +01:00 committed by techknowlogick
parent d9394234b9
commit 6abdddefe3

View file

@ -53,7 +53,7 @@ func (c *Client) GetRelease(user, repo string, id int64) (*Release, error) {
type CreateReleaseOption struct {
// required: true
TagName string `json:"tag_name" binding:"Required"`
Target string `json:"target_commitish"`
Target string `json:"target_commitish" binding:"Required"`
Title string `json:"name"`
Note string `json:"body"`
IsDraft bool `json:"draft"`