Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct { // Relative file path // Required. Path string `json:"path,omitempty"` // Line number. // Optional. Line int `json:"line,omitempty"` // Annotation message. // Required. Message string `json:"message,omitempty"` // Original error message of this annotaion. // Optional. RawMessage string `json:"raw_message,omitempty"` }
Annotation represents an annotaion to file or specific line.
type CheckRequest ¶
type CheckRequest struct { // Commit SHA. // Required. SHA string `json:"sha,omitempty"` // PullRequest number. // Required. PullRequest int `json:"pull_request,omitempty"` // Owner of the repository. // Required. Owner string `json:"owner,omitempty"` // Repository name. // Required. Repo string `json:"repo,omitempty"` // Branch name. // Optional. Branch string `json:"branch,omitempty"` // Annotations associated with the repository's commit and Pull Request. Annotations []*Annotation `json:"annotations,omitempty"` // Name of the annotation tool. // Optional. Name string `json:"name,omitempty"` // Level is report level for this request. // One of ["info", "warning", "error"]. Default is "error". Level string `json:"level"` }
CheckRequest represents doghouse GitHub check request.
type CheckResponse ¶
type CheckResponse struct { // ReportURL is report URL of check run. // Optional. ReportURL string `json:"report_url,omitempty"` // CheckedResults is checked annotations result. // This field is expected to be filled for GitHub Actions integration and // filled when ReportURL is not available. i.e. reviewdog doens't have write // permission to Check API. // It's also not expected to be passed over network via JSON. // TODO(haya14busa): Consider to move this type to this package to avoid // (cyclic) import. // Optional. CheckedResults []*reviewdog.FilteredCheck }
CheckResponse represents doghouse GitHub check response.
Click to show internal directories.
Click to hide internal directories.