Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Applier ¶
type Applier struct {
// contains filtered or unexported fields
}
Applier can update a Git repo with an updated version of a file based on a RepositoryPushHook.
func New ¶
func New(l logr.Logger, c client.GitClient, cfgs *config.RepoConfiguration, opts ...updater.UpdaterFunc) *Applier
New creates and returns a new Applier.
func (*Applier) UpdateFromHook ¶
UpdateFromHook takes the incoming hook and triggers an update based on the configuration for the repo in the hook (if one matches).
func (*Applier) UpdateRepository ¶
func (u *Applier) UpdateRepository(ctx context.Context, cfg *config.Repository, newURL string) error
UpdateRepository does the job of fetching the existing file, updating it, and then optionally creating a PR.
Click to show internal directories.
Click to hide internal directories.