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).
Click to show internal directories.
Click to hide internal directories.