pullreq

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ListService

type ListService struct {
	// contains filtered or unexported fields
}

func NewListService

func NewListService(
	tx dbtx.Transactor,
	git git.Interface,
	authorizer authz.Authorizer,
	spaceStore store.SpaceStore,
	repoStore store.RepoStore,
	repoGitInfoCache store.RepoGitInfoCache,
	pullreqStore store.PullReqStore,
	checkStore store.CheckStore,
	labelSvc *label.Service,
	protectionManager *protection.Manager,
) *ListService

func ProvideListService

func ProvideListService(
	tx dbtx.Transactor,
	git git.Interface,
	authorizer authz.Authorizer,
	spaceStore store.SpaceStore,
	repoStore store.RepoStore,
	repoGitInfoCache store.RepoGitInfoCache,
	pullreqStore store.PullReqStore,
	checkStore store.CheckStore,
	labelSvc *label.Service,
	protectionManager *protection.Manager,
) *ListService

func (*ListService) BackfillChecks

func (c *ListService) BackfillChecks(
	ctx context.Context,
	list []types.PullReqRepo,
) error

BackfillChecks collects the check metadata for the provided list of pull requests.

func (*ListService) BackfillMetadata

func (c *ListService) BackfillMetadata(
	ctx context.Context,
	list []types.PullReqRepo,
	options types.PullReqMetadataOptions,
) error

func (*ListService) BackfillMetadataForPullReq

func (c *ListService) BackfillMetadataForPullReq(
	ctx context.Context,
	repo *types.Repository,
	pr *types.PullReq,
	options types.PullReqMetadataOptions,
) error

func (*ListService) BackfillMetadataForRepo

func (c *ListService) BackfillMetadataForRepo(
	ctx context.Context,
	repo *types.Repository,
	list []*types.PullReq,
	options types.PullReqMetadataOptions,
) error

func (*ListService) BackfillRules

func (c *ListService) BackfillRules(
	ctx context.Context,
	list []types.PullReqRepo,
) error

BackfillRules collects the rule metadata for the provided list of pull requests.

func (*ListService) BackfillStats

func (c *ListService) BackfillStats(ctx context.Context, pr *types.PullReq) error

func (*ListService) ListForSpace

func (c *ListService) ListForSpace(
	ctx context.Context,
	session *auth.Session,
	space *types.Space,
	includeSubspaces bool,
	filter *types.PullReqFilter,
) ([]types.PullReqRepo, error)

ListForSpace returns a list of pull requests and their respective repositories for a specific space.

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context,
	config *types.Config,
	gitReaderFactory *events.ReaderFactory[*gitevents.Reader],
	pullreqEvReaderFactory *events.ReaderFactory[*pullreqevents.Reader],
	pullreqEvReporter *pullreqevents.Reporter,
	git git.Interface,
	repoGitInfoCache store.RepoGitInfoCache,
	repoStore store.RepoStore,
	pullreqStore store.PullReqStore,
	activityStore store.PullReqActivityStore,
	codeCommentView store.CodeCommentView,
	codeCommentMigrator *codecomments.Migrator,
	fileViewStore store.PullReqFileViewStore,
	principalInfoCache store.PrincipalInfoCache,
	bus pubsub.PubSub,
	urlProvider url.Provider,
	sseStreamer sse.Streamer,
) (*Service, error)

func ProvideService

func ProvideService(ctx context.Context,
	config *types.Config,
	gitReaderFactory *events.ReaderFactory[*gitevents.Reader],
	pullReqEvFactory *events.ReaderFactory[*pullreqevents.Reader],
	pullReqEvReporter *pullreqevents.Reporter,
	git git.Interface,
	repoGitInfoCache store.RepoGitInfoCache,
	repoStore store.RepoStore,
	pullreqStore store.PullReqStore,
	activityStore store.PullReqActivityStore,
	principalInfoCache store.PrincipalInfoCache,
	codeCommentView store.CodeCommentView,
	codeCommentMigrator *codecomments.Migrator,
	fileViewStore store.PullReqFileViewStore,
	pubsub pubsub.PubSub,
	urlProvider url.Provider,
	sseStreamer sse.Streamer,
) (*Service, error)

Jump to

Keyboard shortcuts

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