Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Github ¶
Github is the github provider and uses deploy keys as credentials TODO: we could provide just wrap the normal git provider
func (*Github) Pull ¶
func (gh *Github) Pull(repo *kagami.Repository, path string) error
Pull pulls a repo from github locally
func (*Github) Push ¶
func (gh *Github) Push(repo *kagami.Repository, path string) error
Push pushes a repo to a remote target
type GithubPushPayload ¶
type GithubPushPayload struct { HeadCommit struct { ID string `json:"id"` } `json:"head_commit"` Repository struct { Name string `json:"name"` FullName string `json:"full_name"` SSHURL string `json:"ssh_url"` } `json:"repository"` }
GithubPushPayload represents a push payload from a github webhook, at least the field that we actually care about: https://developer.github.com/v3/activity/events/types/#pushevent
Click to show internal directories.
Click to hide internal directories.