Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidGitHubConfig = errors.New("invalid GitHub configuration") ErrGitHubAPIError = errors.New("GitHub API error") )
Functions ¶
func FormatSubjectID ¶
Types ¶
type Client ¶
type Client interface { // Methods used by Worker ListRepos(ctx context.Context) ([]*store.GitHubRepo, error) ListPRs(ctx context.Context, repoID string) ([]*PullRequest, error) ListComments(ctx context.Context, repoID string, prNumber int, since time.Time) ([]*github.IssueComment, error) GetPRDiff(ctx context.Context, repoID string, prNumber int) (string, error) // Methods used by Processor PostComment(ctx context.Context, repoID string, prNumber int, comment string) error }
Client defines the minimal GitHub API operations needed by our system
type PullRequest ¶
type PullRequest struct { ID int64 `json:"id"` Number int `json:"number"` Title string `json:"title"` State string `json:"state"` URL string `json:"url"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` AuthorLogin string `json:"authorLogin"` ClosedAt *time.Time `json:"closedAt,omitempty"` MergedAt *time.Time `json:"mergedAt,omitempty"` }
Click to show internal directories.
Click to hide internal directories.