-
Notifications
You must be signed in to change notification settings - Fork 58
/
model.go
30 lines (27 loc) · 1.25 KB
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package resource
import "github.com/shurcooL/githubv4"
// ReleaseObject represent the graphql release object
// https://developer.github.com/v4/object/release
type ReleaseObject struct {
CreatedAt githubv4.DateTime `graphql:"createdAt"`
PublishedAt githubv4.DateTime `graphql:"publishedAt"`
ID string `graphql:"id"`
DatabaseId githubv4.Int `graphql:"databaseId"`
IsDraft bool `graphql:"isDraft"`
IsPrerelease bool `graphql:"isPrerelease"`
Name string `graphql:"name"`
TagName string `graphql:"tagName"`
URL string `graphql:"url"`
}
// ReleaseObjectEnterprise Workaround until DatabaseId will appear in enterprise installation
// https://github.com/concourse/github-release-resource/issues/109
type ReleaseObjectEnterprise struct {
CreatedAt githubv4.DateTime `graphql:"createdAt"`
PublishedAt githubv4.DateTime `graphql:"publishedAt"`
ID string `graphql:"id"`
IsDraft bool `graphql:"isDraft"`
IsPrerelease bool `graphql:"isPrerelease"`
Name string `graphql:"name"`
TagName string `graphql:"tagName"`
URL string `graphql:"url"`
}