Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePRNumber ¶
ParsePRNumber parses a PR number from a string.
func ParsePatchLines ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) PostReview ¶
func (c *Client) PostReview(ctx context.Context, owner, repo string, prNumber int, comments []ReviewComment, commitSHA string) error
PostReview posts all findings as a single PR review. Comments on lines within the diff are posted inline; comments on changed files but outside diff hunks become file-level comments; findings on unchanged files are listed in the review body.
type PRMetadata ¶
PRMetadata holds the information needed to post review comments on a PR.
func LoadPRMetadataFromEnv ¶
func LoadPRMetadataFromEnv() (*PRMetadata, error)
LoadPRMetadataFromEnv extracts PR metadata from GitHub Actions environment variables.
func LoadPRMetadataFromFlags ¶
func LoadPRMetadataFromFlags(owner, repo string, prNumber int, commitSHA string) *PRMetadata
LoadPRMetadataFromFlags allows manual override via CLI flags (for testing/local use).
type ReviewComment ¶
type ReviewComment struct {
Path string `json:"path"`
Line int `json:"line"`
Body string `json:"body"`
}
ReviewComment is a local DTO for a future GitHub API integration. V1 intentionally does not call GitHub directly.
func BuildReviewComments ¶
func BuildReviewComments(reports []models.Report) []ReviewComment
Click to show internal directories.
Click to hide internal directories.