Versions in this module Expand all Collapse all v0 v0.1.3 Jul 15, 2026 Changes in this version + const DefaultAPIBase + var ErrAmbiguousCredential = errors.New("github: Config carries both App and Token; set exactly one") + var ErrApproveNotEnabled = errors.New("github: APPROVE verdict is not enabled for this reviewer") + var ErrDiffTooLarge = errors.New("github: pull request exceeds the review budget") + var ErrIncompleteDiff = errors.New("github: refusing to approve a pull request whose diff was truncated") + var ErrNoCredential = errors.New("github: Config needs either App or Token") + var ErrSelfApproval = errors.New("github: refusing to approve the reviewer's own pull request") + func ParsePrivateKey(pemBytes []byte) (*rsa.PrivateKey, error) + type App struct + InstallationID int64 + Issuer string + PrivateKey *rsa.PrivateKey + type ChangedFile struct + Additions int + Deletions int + Filename string + Patch string + PatchTruncated bool + Status string + type Config struct + APIBase string + AllowApprove bool + App App + Clock clock.Clock + HTTPClient *http.Client + MaxChangedLines int + MaxFiles int + MaxPatchBytes int + Number int + Owner string + Repo string + ReviewOversize bool + SelfLogin string + Token secret.Text + type Finding struct + Failure string + Line int + Path string + Rule string + Summary string + type PostedFinding struct + Failure string + Line int + Path string + Rule string + Summary string + type PullRequest struct + Additions int + AuthorLogin string + Body string + ChangedFiles int + Deletions int + Draft bool + Head struct{ ... } + HeadSHA string + Number int + State string + Title string + User struct{ ... } + func (p PullRequest) ChangedLines() int + type ReviewComment struct + Body string + HTMLURL string + ID int64 + Line int + Path string + User struct{ ... } + type ReviewThread struct + Author string + CanResolve bool + CommentNodeIDs []string + ID string + Marker string + Outdated bool + Participants int + Resolved bool + Truncated bool + type Set struct + func New(cfg Config) (*Set, error) + func (s *Set) Tools() []mission.Tool