Documentation ¶
Overview ¶
Package service provides wrappers for git engines with additional methods, common for each git engine implementations. Consumers should use Service and should never use the naked engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListPRsRequest ¶
type ListPRsRequest struct { engine.ListPRsRequest WithoutMyUnresolvedThreads bool ApprovedByMe *bool SatisfiesApprovalRules *bool Authors misc.Filter[string] ProjectPaths misc.Filter[string] }
ListPRsRequest is a request to list pull requests.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service wraps git engine client with additional functionality.
func NewService ¶
NewService creates a new service.
func (*Service) ListPullRequests ¶
func (s *Service) ListPullRequests(ctx context.Context, req ListPRsRequest) ([]git.PullRequest, error)
ListPullRequests calls an underlying git engine client to list pull requests and filters them by the provided criteria.
Click to show internal directories.
Click to hide internal directories.