Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
func (Actor) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Actor) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Actor) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Actor) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Asset ¶
type Asset struct { ID int `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Name string `json:"name"` Label *string `json:"label"` Uploader Actor `json:"uploader"` ContentType string `json:"content_type"` State string `json:"state"` Size int `json:"size"` DownloadCount int `json:"download_count"` }
func (Asset) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Asset) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Asset) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Asset) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Author ¶
Author - GHA Commit Author structure
func (Author) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Author) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Author) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Author) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Branch ¶
type Branch struct { SHA string `json:"sha"` User *Actor `json:"user"` Repo *Forkee `json:"repo"` // This is confusing, but actually GHA has "repo" fields that holds "forkee" structure Label string `json:"label"` Ref string `json:"ref"` }
Branch - GHA Branch structure
func (Branch) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Branch) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Branch) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Branch) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Comment ¶
type Comment struct { ID int `json:"id"` Body string `json:"body"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` User Actor `json:"user"` CommitID *string `json:"commit_id"` OriginalCommitID *string `json:"original_commit_id"` DiffHunk *string `json:"diff_hunk"` Position *int `json:"position"` OriginalPosition *int `json:"original_position"` Path *string `json:"path"` PullRequestReviewID *int `json:"pull_request_review_id"` Line *int `json:"line"` }
Comment - GHA Comment structure
func (Comment) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Comment) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Comment) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Comment) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Commit ¶
type Commit struct { SHA string `json:"sha"` Author Author `json:"author"` Message string `json:"message"` Distinct bool `json:"distinct"` }
Commit - GHA Commit structure
func (Commit) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Commit) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Commit) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Commit) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Dummy ¶
type Dummy struct{}
func (Dummy) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Dummy) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Dummy) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Dummy) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Event ¶
type Event struct { ID string `json:"id"` Type string `json:"type"` Public bool `json:"public"` CreatedAt time.Time `json:"created_at"` Actor *Actor `json:"actor"` Repo *Repo `json:"repo"` Org *Org `json:"org"` Payload *Payload `json:"payload"` }
func (Event) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Event) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Event) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Event) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Forkee ¶
type Forkee struct { ID int `json:"id"` Name string `json:"name"` FullName string `json:"full_name"` Owner Actor `json:"owner"` Description *string `json:"description"` Public *bool `json:"public"` Fork bool `json:"fork"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` PushedAt *time.Time `json:"pushed_at"` Homepage *string `json:"homepage"` Size int `json:"size"` StargazersCount int `json:"stargazers_count"` HasIssues bool `json:"has_issues"` HasProjects *bool `json:"has_projects"` HasDownloads bool `json:"has_downloads"` HasWiki bool `json:"has_wiki"` HasPages *bool `json:"has_pages"` Forks int `json:"forks"` OpenIssues int `json:"open_issues"` Watchers int `json:"watchers"` DefaultBranch string `json:"default_branch"` }
func (Forkee) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Forkee) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Forkee) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Forkee) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Issue ¶
type Issue struct { ID int `json:"id"` Number int `json:"number"` Comments int `json:"comments"` Title string `json:"title"` State string `json:"state"` Locked bool `json:"locked"` Body *string `json:"body"` User Actor `json:"user"` Assignee *Actor `json:"assignee"` Labels []Label `json:"labels"` Assignees []Actor `json:"assignees"` Milestone *Milestone `json:"milestone"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` ClosedAt *time.Time `json:"closed_at"` PullRequest *Dummy `json:"pull_request"` }
Issue - GHA Issue structure
func (Issue) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Issue) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Issue) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Issue) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Label ¶
type Label struct { ID *int `json:"id"` Name string `json:"name"` Color string `json:"color"` Default *bool `json:"default"` }
Label - GHA Label structure
func (Label) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Label) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Label) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Label) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Milestone ¶
type Milestone struct { ID int `json:"id"` Name string `json:"name"` Number int `json:"number"` Title string `json:"title"` Description *string `json:"description"` Creator *Actor `json:"creator"` OpenIssues int `json:"open_issues"` ClosedIssues int `json:"closed_issues"` State string `json:"state"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` ClosedAt *time.Time `json:"closed_at"` DueOn *time.Time `json:"due_on"` }
Milestone - GHA Milestone structure
func (Milestone) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Milestone) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Milestone) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Milestone) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Org ¶
func (Org) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Org) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Org) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Org) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Page ¶
type Page struct { SHA string `json:"sha"` Action string `json:"action"` Title string `json:"title"` }
Page - GHA Page structure
func (Page) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Page) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Page) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Page) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Payload ¶
type Payload struct { PushID *int `json:"push_id"` Size *int `json:"size"` Ref *string `json:"ref"` Head *string `json:"head"` Before *string `json:"before"` Action *string `json:"action"` RefType *string `json:"ref_type"` MasterBranch *string `json:"master_branch"` Description *string `json:"description"` Number *int `json:"number"` Forkee *Forkee `json:"forkee"` Release *Release `json:"release"` Member *Actor `json:"member"` Issue *Issue `json:"issue"` Comment *Comment `json:"comment"` Commits *[]Commit `json:"commits"` Pages *[]Page `json:"pages"` PullRequest *PullRequest `json:"pull_request"` DistinctSize *int `json:"distinct_size"` }
func (Payload) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Payload) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Payload) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Payload) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type PullRequest ¶
type PullRequest struct { ID int `json:"id"` Base Branch `json:"base"` Head Branch `json:"head"` User Actor `json:"user"` Number int `json:"number"` State string `json:"state"` Locked *bool `json:"locked"` Title string `json:"title"` Body *string `json:"body"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` ClosedAt *time.Time `json:"closed_at"` MergedAt *time.Time `json:"merged_at"` MergeCommitSHA *string `json:"merge_commit_sha"` Assignee *Actor `json:"assignee"` Assignees *[]Actor `json:"assignees"` RequestedReviewers *[]Actor `json:"requested_reviewers"` Milestone *Milestone `json:"milestone"` Merged *bool `json:"merged"` Mergeable *bool `json:"mergeable"` MergedBy *Actor `json:"merged_by"` MergeableState *string `json:"mergeable_state"` Rebaseable *bool `json:"rebaseable"` Comments *int `json:"comments"` ReviewComments *int `json:"review_comments"` MaintainerCanModify *bool `json:"maintainer_can_modify"` Commits *int `json:"commits"` Additions *int `json:"additions"` Deletions *int `json:"deletions"` ChangedFiles *int `json:"changed_files"` }
func (PullRequest) MarshalEasyJSON ¶
func (v PullRequest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PullRequest) MarshalJSON ¶
func (v PullRequest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PullRequest) UnmarshalEasyJSON ¶
func (v *PullRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PullRequest) UnmarshalJSON ¶
func (v *PullRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Release ¶
type Release struct { ID int `json:"id"` TagName string `json:"tag_name"` TargetCommitish string `json:"target_commitish"` Name *string `json:"name"` Draft bool `json:"draft"` Author Actor `json:"author"` Prerelease bool `json:"prerelease"` CreatedAt time.Time `json:"created_at"` PublishedAt *time.Time `json:"published_at"` Body *string `json:"body"` Assets []Asset `json:"assets"` }
Release - GHA Release structure
func (Release) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Release) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Release) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Release) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Repo ¶
func (Repo) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Repo) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Repo) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Repo) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Team ¶
type Team struct { ID int `json:"id"` Name string `json:"name"` Slug string `json:"slug"` Permission string `json:"permission"` }
Team - GHA Team structure (only used before 2015)
func (Team) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Team) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Team) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Team) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface