Documentation ¶
Overview ¶
Package gitImpl provides the implementation of the zedpm-plugin-git plugin.
Index ¶
- Constants
- func GetPropertyGitIgnoreDirty(ctx context.Context) bool
- func IsDirty(status git.Status) bool
- type Plugin
- func (p *Plugin) Cancel(ctx context.Context, task plugin.Task) error
- func (p *Plugin) Complete(ctx context.Context, task plugin.Task) error
- func (p *Plugin) Goal(context.Context, string) (plugin.GoalDescription, error)
- func (p *Plugin) Implements(context.Context) ([]plugin.TaskDescription, error)
- func (p *Plugin) Prepare(ctx context.Context, task string) (plugin.Task, error)
- type ReleaseMintTask
- func (s *ReleaseMintTask) AddAndCommit(ctx context.Context) error
- func (s *ReleaseMintTask) Check(ctx context.Context) error
- func (s *ReleaseMintTask) CheckGitCleanliness(ctx context.Context) error
- func (s *ReleaseMintTask) End(context.Context) (plugin.Operations, error)
- func (s *ReleaseMintTask) MakeReleaseBranch(ctx context.Context) error
- func (s *ReleaseMintTask) PushReleaseBranch(ctx context.Context) error
- func (s *ReleaseMintTask) Run(context.Context) (plugin.Operations, error)
- func (s *ReleaseMintTask) Setup(ctx context.Context) error
- type ReleasePublishTask
Constants ¶
const (
PropertyGitIgnoreDirty = "git.ignoreDirty"
)
Variables ¶
This section is empty.
Functions ¶
func GetPropertyGitIgnoreDirty ¶ added in v0.1.0
GetPropertyGitIgnoreDirty gets the setting, that when true, allows the minting to proceed even when the directory is dirty.
Types ¶
type Plugin ¶
type Plugin struct{}
Plugin implements the plugin.Interface for performing tasks related to git.
func (*Plugin) Implements ¶
Implements provides task descriptions for /release/mint/git and /release/publish/git tasks.
type ReleaseMintTask ¶
type ReleaseMintTask struct { plugin.TaskBoilerplate zGit.Git }
ReleaseMintTask implements the /release/mint/git task.
func (*ReleaseMintTask) AddAndCommit ¶
func (s *ReleaseMintTask) AddAndCommit(ctx context.Context) error
AddAndCommit adds changes made as part of the release process to the release branch.
func (*ReleaseMintTask) Check ¶
func (s *ReleaseMintTask) Check(ctx context.Context) error
Check calls CheckGitCleanliness.
func (*ReleaseMintTask) CheckGitCleanliness ¶
func (s *ReleaseMintTask) CheckGitCleanliness(ctx context.Context) error
CheckGitCleanliness ensures that the current git repository is clean and that we are on the correct branch from which to trigger a release.
func (*ReleaseMintTask) End ¶
func (s *ReleaseMintTask) End(context.Context) (plugin.Operations, error)
End sets up the AddAndCommit and PushReleaseBranch operations.
func (*ReleaseMintTask) MakeReleaseBranch ¶
func (s *ReleaseMintTask) MakeReleaseBranch(ctx context.Context) error
MakeReleaseBranch creates the branch that will be used to manage the release.
func (*ReleaseMintTask) PushReleaseBranch ¶
func (s *ReleaseMintTask) PushReleaseBranch(ctx context.Context) error
PushReleaseBranch pushes the release branch to github for release testing.
func (*ReleaseMintTask) Run ¶
func (s *ReleaseMintTask) Run(context.Context) (plugin.Operations, error)
Run sets up the MakeReleaseBranch operation.
type ReleasePublishTask ¶
type ReleasePublishTask struct { plugin.TaskBoilerplate zGit.Git }
ReleasePublishTask implements the /release/publish/git task.
func (*ReleasePublishTask) End ¶
func (f *ReleasePublishTask) End(context.Context) (plugin.Operations, error)
End sets up the TagRelease operation to run.
func (*ReleasePublishTask) Setup ¶
func (f *ReleasePublishTask) Setup(ctx context.Context) error
Setup initializes the git client and related objects.
func (*ReleasePublishTask) TagRelease ¶
func (f *ReleasePublishTask) TagRelease(ctx context.Context) error
TagRelease creates and pushes a tag for the newly merged release on master.