Versions in this module Expand all Collapse all v0 v0.22.4 Aug 12, 2026 v0.22.3 Aug 11, 2026 v0.22.2 Jul 7, 2026 v0.22.1 Jul 7, 2026 v0.22.0 Jul 6, 2026 v0.21.2 Jul 4, 2026 Changes in this version + var ErrActiveReviewExists = errors.New("store: active code review exists") + var ErrNotFound = routingdomain.ErrNotFound + func MigrateDown(ctx context.Context, db *gorm.DB) error + func MigrateStatus(ctx context.Context, db *gorm.DB) (string, error) + func MigrateUp(ctx context.Context, db *gorm.DB) error + func NewTestDB(t *testing.T) *gorm.DB + func Open(url string) (*gorm.DB, error) + func RawCreateForTest(db *gorm.DB, pr PullRequest) error + func SQLDB(db *gorm.DB) (*sql.DB, error) + type CodeReview struct + FinishedAt *time.Time + ID uint + PullRequestID uint + SlackUserID string + SlackUserName string + StartedAt time.Time + func (CodeReview) TableName() string + type CodeReviews struct + func NewCodeReviews(db *gorm.DB) *CodeReviews + func (r *CodeReviews) ActiveForUser(ctx context.Context, repository string, prNumber int, slackUserID string) (CodeReview, error) + func (r *CodeReviews) Finish(ctx context.Context, repository string, prNumber int) error + func (r *CodeReviews) GetActive(ctx context.Context, repository string, prNumber int) (CodeReview, error) + func (r *CodeReviews) Reviewers(ctx context.Context, repository string, prNumber int) ([]CodeReview, error) + func (r *CodeReviews) Start(ctx context.Context, repository string, prNumber int, ...) error + type Message struct + Channel string + ID uint + MessageID string + PullRequestID uint + func (Message) TableName() string + type PullRequest struct + ClosedAt *time.Time + CreatedAt time.Time + ID uint + Messages []Message + PRNumber int + Repository string + UpdatedAt time.Time + func (PullRequest) TableName() string + type PullRequests struct + func NewPullRequests(db *gorm.DB) *PullRequests + func (r *PullRequests) AddMessage(ctx context.Context, repository string, prNumber int, ...) error + func (r *PullRequests) Delete(ctx context.Context, repository string, prNumber int) error + func (r *PullRequests) DeleteStaleBefore(ctx context.Context, cutoff time.Time) (int64, error) + func (r *PullRequests) FindStuck(ctx context.Context, cutoff time.Time) ([]PullRequest, error) + func (r *PullRequests) ListOpen(ctx context.Context) ([]PullRequest, error) + func (r *PullRequests) MarkClosed(ctx context.Context, repository string, prNumber int) error + func (r *PullRequests) Messages(ctx context.Context, repository string, prNumber int) ([]Message, error) + func (r *PullRequests) Touch(ctx context.Context, repository string, prNumber int) error + type Reactions = routingdomain.Reactions + type RepoMapping = routingdomain.RepoMapping + type Target = routingdomain.Target