pr

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeSuggestion

type CodeSuggestion struct {
	RelevantFile       string `json:"relevant_file"`
	Language           string `json:"language"`
	SuggestionContent  string `json:"suggestion_content"`
	ExistingCode       string `json:"existing_code"`
	ImprovedCode       string `json:"improved_code"`
	OneSentenceSummary string `json:"one_sentence_summary"`
	Label              string `json:"label"`
}

type FileFileDescription

type FileFileDescription struct {
	Filename string `json:"filename"`
	Summary  string `json:"change_summary"`
	Title    string `json:"change_title"`
	Label    string `json:"label"`
}

type Input

type Input struct {
	Instruction string
	Diff        string

	ChangeLog string
}
type KeyIssuesComponentLink struct {
	RelevantFile string `json:"relevant_file"`
	IssueHeader  string `json:"issue_header"`
	IssueContent string `json:"issue_content"`
	StartLine    int    `json:"start_line"`
	EndLine      int    `json:"end_line"`
}

type PRChangelog

type PRChangelog struct {
	Today     string `json:"today"`
	Changelog string `json:"changelog"`
}

type PRCodeSuggestions

type PRCodeSuggestions struct {
	CodeSuggestions []CodeSuggestion `json:"code_suggestions"`
}

type PRDescription

type PRDescription struct {
	Types       []Type `json:"type"`
	Description string `json:"description"`
	Title       string `json:"title"`

	Files []*FileFileDescription `json:"pr_files"`
}

type PRReview

type PRReview struct {
	Review Review `json:"review"`
}

type Review

type Review struct {
	EstimatedEffortToReview int                      `json:"estimated_effort_to_review"`
	Score                   string                   `json:"score"`
	RelevantTests           string                   `json:"relevant_tests"`
	InsightsFromUserAnswers string                   `json:"insights_from_user_answers"`
	KeyIssuesToReview       []KeyIssuesComponentLink `json:"key_issues_to_review"`
	SecurityConcerns        string                   `json:"security_concerns"`
}

type Type

type Type string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL