Documentation
¶
Index ¶
- Variables
- func Apply(repoDir string, patch config.PackageRepoPatch, tmplCtx TemplateContext) error
- func ApplyMany(repoDir string, patches []config.PackageRepoPatch, tmplCtx TemplateContext) error
- type Patcher
- func (p Patcher) CloneAndPublishAll(pkgRepos []config.PackageRepo, tmplCtx TemplateContext) ([]github.PullRequest, error)
- func (p Patcher) CloneAndPublishRepo(pkgRepo config.PackageRepo, tmplCtx TemplateContext) (github.PullRequest, error)
- func (p Patcher) CloneRepo(remote string, tmplCtx TemplateContext) (*Repo, error)
- func (p Patcher) TestGitHubConnection(ctx context.Context) error
- type Repo
- func (p *Repo) ApplyManyAndCommit(patches []config.PackageRepoPatch) error
- func (p *Repo) ApplyManyInNewBranch(patches []config.PackageRepoPatch) error
- func (p *Repo) Close() error
- func (p *Repo) PublishChanges() (github.PullRequest, error)
- func (p *Repo) PublishChangesUnlessDryRun() (github.PullRequest, error)
- type TemplateContext
- type TemplateContextRegex
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoPatches = errors.New("no patches configured for repository")
)
Functions ¶
func Apply ¶
func Apply(repoDir string, patch config.PackageRepoPatch, tmplCtx TemplateContext) error
func ApplyMany ¶
func ApplyMany(repoDir string, patches []config.PackageRepoPatch, tmplCtx TemplateContext) error
Types ¶
type Patcher ¶
type Patcher struct {
// contains filtered or unexported fields
}
func (Patcher) CloneAndPublishAll ¶
func (p Patcher) CloneAndPublishAll(pkgRepos []config.PackageRepo, tmplCtx TemplateContext) ([]github.PullRequest, error)
func (Patcher) CloneAndPublishRepo ¶
func (p Patcher) CloneAndPublishRepo(pkgRepo config.PackageRepo, tmplCtx TemplateContext) (github.PullRequest, error)
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) ApplyManyAndCommit ¶
func (p *Repo) ApplyManyAndCommit(patches []config.PackageRepoPatch) error
func (*Repo) ApplyManyInNewBranch ¶
func (p *Repo) ApplyManyInNewBranch(patches []config.PackageRepoPatch) error
func (*Repo) PublishChanges ¶
func (p *Repo) PublishChanges() (github.PullRequest, error)
func (*Repo) PublishChangesUnlessDryRun ¶
func (p *Repo) PublishChangesUnlessDryRun() (github.PullRequest, error)
type TemplateContext ¶
type TemplateContextRegex ¶
type TemplateContextRegex struct {
TemplateContext
Groups []string
}
Click to show internal directories.
Click to hide internal directories.