diff options
author | Lauris BH <lauris@nix.lv> | 2019-01-30 18:33:00 +0200 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-01-30 11:33:00 -0500 |
commit | fada6968a847f628a6d32ac546e1228838809498 (patch) | |
tree | b0f8c8cd14a5c6e7bbffbc170e52527865a58462 /vendor/code.gitea.io/sdk/gitea/release.go | |
parent | 8b5f6ced22d510a399bf304915ad77c61d6ce7b3 (diff) | |
download | gitea-fada6968a847f628a6d32ac546e1228838809498.tar.gz gitea-fada6968a847f628a6d32ac546e1228838809498.zip |
Fix new release creation API to allow empty target (#5870)
* Fix new release creation API to allow empty target
* Add more test cases
* Update swagger
Diffstat (limited to 'vendor/code.gitea.io/sdk/gitea/release.go')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/release.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/release.go b/vendor/code.gitea.io/sdk/gitea/release.go index 3605d2cd4a..396251dcac 100644 --- a/vendor/code.gitea.io/sdk/gitea/release.go +++ b/vendor/code.gitea.io/sdk/gitea/release.go @@ -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" binding:"Required"` + Target string `json:"target_commitish"` Title string `json:"name"` Note string `json:"body"` IsDraft bool `json:"draft"` |