27 lines
998 B
Go
27 lines
998 B
Go
package structs
|
|
|
|
import (
|
|
"time"
|
|
|
|
gitea_api "code.gitea.io/gitea/modules/structs"
|
|
)
|
|
|
|
type Release struct {
|
|
ID int64 `json:"id"`
|
|
TagName string `json:"tag_name"`
|
|
Target string `json:"target_commitish"`
|
|
Title string `json:"name"`
|
|
Sha string `json:"sha"`
|
|
Note string `json:"body"`
|
|
URL string `json:"url"`
|
|
HTMLURL string `json:"html_url"`
|
|
TarURL string `json:"tarball_url"`
|
|
ZipURL string `json:"zipball_url"`
|
|
IsDraft bool `json:"draft"`
|
|
IsPrerelease bool `json:"prerelease"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
PublishedAt time.Time `json:"published_at"`
|
|
Publisher *gitea_api.User `json:"author"`
|
|
Attachments []*gitea_api.Attachment `json:"assets"`
|
|
}
|