add: release list sha

This commit is contained in:
yystopf 2021-09-27 16:51:08 +08:00
parent 705694ff88
commit c37047eeaf
3 changed files with 15 additions and 1 deletions

View File

@ -96,6 +96,7 @@ func (r *Release) APIFormat() *api.Release {
TagName: r.TagName,
Target: r.Target,
Title: r.Title,
Sha1: r.Sha1,
Note: r.Note,
URL: r.APIURL(),
HTMLURL: r.HTMLURL(),

View File

@ -1,3 +1,11 @@
/*
* @Description: Do not edit
* @Date: 2021-07-09 10:47:30
* @LastEditors: viletyy
* @Author: viletyy
* @LastEditTime: 2021-09-27 16:46:33
* @FilePath: /gitea-1120-rc1/modules/structs/release.go
*/
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
@ -14,6 +22,7 @@ type Release struct {
TagName string `json:"tag_name"`
Target string `json:"target_commitish"`
Title string `json:"name"`
Sha1 string `json:"sha"`
Note string `json:"body"`
URL string `json:"url"`
HTMLURL string `json:"html_url"`

View File

@ -14938,6 +14938,10 @@
"format": "date-time",
"x-go-name": "PublishedAt"
},
"sha": {
"type": "string",
"x-go-name": "Sha1"
},
"tag_name": {
"type": "string",
"x-go-name": "TagName"
@ -16571,4 +16575,4 @@
"TOTPHeader": []
}
]
}
}