1// Copyright 2017 The Gogs Authors. All rights reserved.
2// Use of this source code is governed by a MIT-style
3// license that can be found in the LICENSE file.
4
5package gogs
6
7import (
8	"time"
9)
10
11// Release represents a release API object.
12type Release struct {
13	ID              int64     `json:"id"`
14	TagName         string    `json:"tag_name"`
15	TargetCommitish string    `json:"target_commitish"`
16	Name            string    `json:"name"`
17	Body            string    `json:"body"`
18	Draft           bool      `json:"draft"`
19	Prerelease      bool      `json:"prerelease"`
20	Author          *User     `json:"author"`
21	Created         time.Time `json:"created_at"`
22}
23