-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39bde32
commit f565ab0
Showing
4 changed files
with
375 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package github_releases | ||
|
||
type Release struct { | ||
Url string `json:"url"` | ||
AssetsUrl string `json:"assets_url"` | ||
UploadUrl string `json:"upload_url"` | ||
HtmlUrl string `json:"html_url"` | ||
Id int `json:"id"` | ||
Author User `json:"author"` | ||
NodeId string `json:"node_id"` | ||
TagName string `json:"tag_name"` | ||
TargetCommitish string `json:"target_commitish"` | ||
Name string `json:"name"` | ||
Draft bool `json:"draft"` | ||
Prerelease bool `json:"prerelease"` | ||
CreatedAt string `json:"created_at"` | ||
PublishedAt string `json:"published_at"` | ||
Assets []Asset `json:"assets"` | ||
TarballUrl string `json:"tarball_url"` | ||
ZipballUrl string `json:"zipball_url"` | ||
Body string `json:"body"` | ||
Reactions Reactions `json:"reactions"` | ||
} | ||
|
||
type User struct { | ||
Login string `json:"login"` | ||
Id int `json:"id"` | ||
NodeId string `json:"node_id"` | ||
AvatarUrl string `json:"avatar_url"` | ||
GravatarId string `json:"gravatar_id"` | ||
Url string `json:"url"` | ||
HtmlUrl string `json:"html_url"` | ||
FollowersUrl string `json:"followers_url"` | ||
FollowingUrl string `json:"following_url"` | ||
GistsUrl string `json:"gists_url"` | ||
StarredUrl string `json:"starred_url"` | ||
SubscriptionsUrl string `json:"subscriptions_url"` | ||
OrganizationsUrl string `json:"organizations_url"` | ||
ReposUrl string `json:"repos_url"` | ||
EventsUrl string `json:"events_url"` | ||
ReceivedEventsUrl string `json:"received_events_url"` | ||
Type string `json:"type"` | ||
UserViewType string `json:"user_view_type"` | ||
SiteAdmin bool `json:"site_admin"` | ||
} | ||
|
||
type Asset struct { | ||
Url string `json:"url"` | ||
Id int `json:"id"` | ||
NodeId string `json:"node_id"` | ||
Name string `json:"name"` | ||
Label string `json:"label"` | ||
Uploader User `json:"uploader"` | ||
ContentType string `json:"content_type"` | ||
State string `json:"state"` | ||
Size int64 `json:"size"` | ||
DownloadCount int `json:"download_count"` | ||
CreatedAt string `json:"created_at"` | ||
UpdatedAt string `json:"updated_at"` | ||
BrowserDownloadUrl string `json:"browser_download_url"` | ||
} | ||
|
||
type Reactions struct { | ||
Url string `json:"url"` | ||
TotalCount int `json:"total_count"` | ||
PlusOne int `json:"+1"` | ||
MinusOne int `json:"-1"` | ||
Laugh int `json:"laugh"` | ||
Hooray int `json:"hooray"` | ||
Confused int `json:"confused"` | ||
Heart int `json:"heart"` | ||
Rocket int `json:"rocket"` | ||
Eyes int `json:"eyes"` | ||
} | ||
|
||
type FileInfo struct { | ||
Name string `json:"name"` | ||
Path string `json:"path"` | ||
Sha string `json:"sha"` | ||
Size int64 `json:"size"` | ||
Url string `json:"url"` | ||
HtmlUrl string `json:"html_url"` | ||
GitUrl string `json:"git_url"` | ||
DownloadUrl string `json:"download_url"` | ||
Type string `json:"type"` | ||
} |
Oops, something went wrong.