Documentation ¶
Index ¶
- type CheckRun
- type Common
- type Create
- type Delete
- type JobStatus
- type PullRequest
- type PullRequestReview
- type PullRequestReviewComment
- type Push
- type Summarizer
- func ParseFile(ctx context.Context, event string, payloadPath string) (Summarizer, error)
- func ParseString(ctx context.Context, event string, payload string) (Summarizer, error)
- func ParseWorkflow(ctx context.Context) (Summarizer, error)
- func Report(ctx context.Context, workflow, status, runID string, payload io.Reader) (Summarizer, error)
- func ReportFile(ctx context.Context, workflow, status, runID, payloadPath string) (Summarizer, error)
- func ReportString(ctx context.Context, workflow, status, runID, payload string) (Summarizer, error)
- func ReportWorkflowStatus(ctx context.Context, status string) (Summarizer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckRun ¶
type Common ¶
type Common struct { Action string Sender struct { Login string AvatarURL string `json:"avatar_url"` } Repository struct { FullName string `json:"full_name"` DefaultBranch string `json:"default_branch"` URL string `json:"html_url"` } Organization struct { Login string } Ref string HeadCommit struct { ID string URL string } `json:"head_commit"` }
type PullRequest ¶
type PullRequest struct { Common PullRequest struct { Number int Title string Draft bool Head struct { Ref string } Base struct { Ref string } URL string `json:"html_url"` Body string Merged bool } `json:"pull_request"` }
func (PullRequest) SummarizeForTeams ¶
func (ev PullRequest) SummarizeForTeams(p *message.Printer) *teams.Request
type PullRequestReview ¶
type PullRequestReview struct { Common PullRequest struct { Number int Title string URL string `json:"html_url"` } `json:"pull_request"` Review struct { State string URL string `json:"html_url"` } }
func (*PullRequestReview) SummarizeForTeams ¶
func (ev *PullRequestReview) SummarizeForTeams(p *message.Printer) *teams.Request
type PullRequestReviewComment ¶
type PullRequestReviewComment struct{}
func (PullRequestReviewComment) SummarizeForTeams ¶
func (ev PullRequestReviewComment) SummarizeForTeams(p *message.Printer) *teams.Request
type Push ¶
type Summarizer ¶
func ParseString ¶
func ParseWorkflow ¶
func ParseWorkflow(ctx context.Context) (Summarizer, error)
func ReportFile ¶
func ReportFile(ctx context.Context, workflow, status, runID, payloadPath string) (Summarizer, error)
func ReportString ¶
func ReportString(ctx context.Context, workflow, status, runID, payload string) (Summarizer, error)
func ReportWorkflowStatus ¶
func ReportWorkflowStatus(ctx context.Context, status string) (Summarizer, error)
Click to show internal directories.
Click to hide internal directories.