application

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PullRequestOrchestrator

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

PullRequestOrchestrator coordinates multiple use cases to check for PR updates This is the main entry point for periodic PR checking

func NewPullRequestOrchestrator

func NewPullRequestOrchestrator(
	initializeUseCase *usecase.InitializeFirstCheckUseCase,
	checkNewPRsUseCase *usecase.CheckNewPullRequestsUseCase,
	detectClosedPRsUseCase *usecase.DetectClosedPullRequestsUseCase,
	trackActivityUseCase *usecase.TrackPullRequestActivityUseCase,
	updateDisplayUseCase *usecase.UpdatePullRequestDisplayUseCase,
	enableActivityTracking bool,
) *PullRequestOrchestrator

NewPullRequestOrchestrator creates a new orchestrator

func (*PullRequestOrchestrator) ExecuteInitialCheck

func (o *PullRequestOrchestrator) ExecuteInitialCheck(ctx context.Context) error

ExecuteInitialCheck runs the initial check on application startup Returns true if this was the first run ever

func (*PullRequestOrchestrator) ExecuteRegularCheck

func (o *PullRequestOrchestrator) ExecuteRegularCheck(ctx context.Context, lastCheckTime time.Time) error

ExecuteRegularCheck runs a regular periodic check for PR updates. lastCheckTime is the timestamp captured before the previous cycle ran; it is owned and threaded by the caller (e.g. the polling goroutine in main).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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