Documentation ¶
Index ¶
- type Config
- type Repo
- func (r *Repo) CloneWithCheckout(tmpDir string, payload hooks.PushPayload) error
- func (r *Repo) CreateAuthenticatedURL(cloneURL string) (string, error)
- func (r *Repo) CreateRelease(ctx context.Context, owner, repo string, rel *github.RepositoryRelease) (*github.RepositoryRelease, error)
- func (r Repo) CreateTag(dir, version, msg string) error
- func (r Repo) PushTags(dir string) error
- func (r *Repo) SetGitConfig() error
- func (r Repo) UploadReleaseAsset(ctx context.Context, owner, repo string, releaseID int64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo represents a git repository, which receives convenience methods for retrieving code.
func (*Repo) CloneWithCheckout ¶
func (r *Repo) CloneWithCheckout(tmpDir string, payload hooks.PushPayload) error
CloneWithCheckout uses a github Push Event payload to clone down a repository and immediately checkout HEAD on the branch that caused that Push Event.
func (*Repo) CreateAuthenticatedURL ¶
CreateAuthenticatedURL adds the username and password from the instantiation of the Repo to use https authentication on all calls to the origin.
func (*Repo) CreateRelease ¶
func (r *Repo) CreateRelease(ctx context.Context, owner, repo string, rel *github.RepositoryRelease) (*github.RepositoryRelease, error)
CreateRelease sends a request to github using the passed body and payload structs to create a new release on a repo
func (*Repo) SetGitConfig ¶ added in v0.1.1
SetGitConfig sets the email and name for usage when sending in git commits
Click to show internal directories.
Click to hide internal directories.