Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Closer ¶ added in v0.13.0
type Closer struct {
VersionController VersionController
FeatureBranch string
}
Closer closes pull requests
type Merger ¶
type Merger struct {
VersionController VersionController
FeatureBranch string
}
Merger merges pull requests in an organization
type Printer ¶ added in v0.12.0
type Printer struct {
VersionController VersionController
ScriptPath string // Must be absolute path
Arguments []string
Token string
Stdout io.Writer
Stderr io.Writer
FetchDepth int // Limit fetching to the specified number of commits. Set to 0 for no limit
Concurrent int
}
Printer contains fields to be able to do the print command
type Runner ¶
type Runner struct {
VersionController VersionController
ScriptPath string // Must be absolute path
Arguments []string
FeatureBranch string
Token string
Output io.Writer
CommitMessage string
PullRequestTitle string
PullRequestBody string
Reviewers []string
MaxReviewers int // If set to zero, all reviewers will be used
DryRun bool
CommitAuthor *domain.CommitAuthor
BaseBranch string // The base branch of the PR, use default branch if not set
FetchDepth int // Limit fetching to the specified number of commits. Set to 0 for no limit
Concurrent int
SkipPullRequest bool // If set, the script will run directly on the base-branch without creating any PR
}
Runner contains fields to be able to do the run
type Statuser ¶
type Statuser struct {
VersionController VersionController
Output io.Writer
FeatureBranch string
}
Statuser checks the statuses of pull requests
type VersionController ¶
type VersionController interface {
GetRepositories(ctx context.Context) ([]domain.Repository, error)
CreatePullRequest(ctx context.Context, repo domain.Repository, newPR domain.NewPullRequest) (domain.PullRequest, error)
GetPullRequests(ctx context.Context, branchName string) ([]domain.PullRequest, error)
MergePullRequest(ctx context.Context, pr domain.PullRequest) error
ClosePullRequest(ctx context.Context, pr domain.PullRequest) error
}
VersionController fetches repositories
Click to show internal directories.
Click to hide internal directories.