Documentation ¶
Index ¶
- func Reconcile(ctx context.Context, repoInfo RepoInformation) (err error)
- type RepoInformation
- type StatusMaker
- func (s *StatusMaker) Create(ctx context.Context, status scm.State, label, desc string) (err error)
- func (s *StatusMaker) FindPreviousStatus(ctx context.Context, scmClient *scm.Client, sha, label string) (target *scm.Status, err error)
- func (s *StatusMaker) WithExpirationCheck(check expirationCheckFunc) *StatusMaker
- func (s *StatusMaker) WithPR(pr int) *StatusMaker
- func (s *StatusMaker) WithProvider(provider string) *StatusMaker
- func (s *StatusMaker) WithServer(server string) *StatusMaker
- func (s *StatusMaker) WithTarget(target string) *StatusMaker
- func (s *StatusMaker) WithToken(token string) *StatusMaker
- func (s *StatusMaker) WithUsername(username string) *StatusMaker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RepoInformation ¶
type StatusMaker ¶
type StatusMaker struct {
// contains filtered or unexported fields
}
StatusMaker responsible for Pull Requests status creating
func NewStatusMaker ¶
func NewStatusMaker(repo, token string) *StatusMaker
NewStatusMaker creates an instance of statusMaker
func (*StatusMaker) FindPreviousStatus ¶
func (s *StatusMaker) FindPreviousStatus(ctx context.Context, scmClient *scm.Client, sha, label string) (target *scm.Status, err error)
FindPreviousStatus finds the existing status by sha and label
func (*StatusMaker) WithExpirationCheck ¶
func (s *StatusMaker) WithExpirationCheck(check expirationCheckFunc) *StatusMaker
WithExpirationCheck set the expiration check function
func (*StatusMaker) WithPR ¶
func (s *StatusMaker) WithPR(pr int) *StatusMaker
WithPR sets the pr number
func (*StatusMaker) WithProvider ¶
func (s *StatusMaker) WithProvider(provider string) *StatusMaker
WithProvider sets the Provider
func (*StatusMaker) WithServer ¶
func (s *StatusMaker) WithServer(server string) *StatusMaker
WithServer sets the server
func (*StatusMaker) WithTarget ¶
func (s *StatusMaker) WithTarget(target string) *StatusMaker
WithTarget sets the Target URL
func (*StatusMaker) WithToken ¶
func (s *StatusMaker) WithToken(token string) *StatusMaker
WithToken sets the token
func (*StatusMaker) WithUsername ¶
func (s *StatusMaker) WithUsername(username string) *StatusMaker
WithUsername sets the username
Click to show internal directories.
Click to hide internal directories.