Documentation ¶
Index ¶
- func AnyRepoModified(wd string, sh *shell.Session) bool
- func ClosePR(gh *github.Client, owner string, repo string, head, base string) (*github.PullRequest, error)
- func CommitAnyRepo(wd string, sh *shell.Session, tag string, messages ...string) error
- func CommitRepo(sh *shell.Session, tag string, messages ...string) error
- func ConfigureGit(sh *shell.Session, key, value string, global bool) error
- func CreatePR(gh *github.Client, owner string, repo string, req *github.NewPullRequest, ...) (*github.PullRequest, error)
- func DetectVCSRoot(repoURL string) (string, error)
- func Execute(sh *shell.Session, cmd string) error
- func Exists(name string) bool
- func FirstCommit(sh *shell.Session) string
- func GetQueryParameter(v url.Values, key string) sets.String
- func GetRemoteTag(sh *shell.Session, tag string) string
- func HasKey(m map[string]string, key string) bool
- func IsGitConfigured(sh *shell.Session, key string, global bool) bool
- func Keys(m map[string]string) []string
- func LabelPR(gh *github.Client, owner string, repo, head, base string, labels ...string) error
- func LastCommitBody(sh *shell.Session, trimBlankLines bool) string
- func LastCommitSHA(sh *shell.Session) string
- func LastCommitSubject(sh *shell.Session) string
- func ListComments(ctx context.Context, gh *github.Client, owner, repo string, number int) ([]*github.IssueComment, error)
- func ListCommits(sh *shell.Session, start, end string) []api.Commit
- func ListLabelsByIssue(ctx context.Context, gh *github.Client, owner, repo string, number int) (sets.String, error)
- func ListPullRequestComment(ctx context.Context, gh *github.Client, owner, repo string, number int) ([]*github.PullRequestComment, error)
- func ListReviews(ctx context.Context, gh *github.Client, owner, repo string, number int) ([]*github.PullRequestReview, error)
- func ListTags(sh *shell.Session) ([]string, error)
- func ListTags2(ctx context.Context, gh *github.Client, owner, repo string) ([]*github.RepositoryTag, error)
- func LoadChangelog(dir string, release api.Release) api.Changelog
- func MarshalJson(v interface{}) ([]byte, error)
- func MeetsCondition(fn ConditionFunc, sh *shell.Session, items ...string) bool
- func MergeMaps(dst, src map[string]string) map[string]string
- func NewGitHubClient() *github.Client
- func PRApproved(gh *github.Client, owner string, repo string, prNumber int) bool
- func ParseComment(s string) []api.Reply
- func ParsePullRequestURL(prURL string) (string, string, int)
- func ParseReply(s string) *api.Reply
- func ParseRepoURL(repoURL string) (string, string)
- func PushAnyRepo(wd string, sh *shell.Session, pushTag bool) error
- func PushRepo(sh *shell.Session, pushTag bool) error
- func RemoteBranchExists(sh *shell.Session, branch string) bool
- func RemoteTagExists(sh *shell.Session, tag string) bool
- func RemoveLabel(gh *github.Client, owner string, repo string, number int, label string) error
- func RepoModified(sh *shell.Session) bool
- func ResetRepo(sh *shell.Session) error
- func TagRepo(sh *shell.Session, tag string, messages ...string) error
- func UniqComments(comments []string) []string
- func UpdateChangelog(dir string, release api.Release, repoURL, tag string, commits []api.Commit)
- func Values(m map[string]string) []string
- func WriteChangelogMarkdown(filename string, tplname string, data interface{})
- type ConditionFunc
- type GoImport
- type MetaData
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitAnyRepo ¶
func ConfigureGit ¶ added in v0.0.12
func CreatePR ¶
func CreatePR(gh *github.Client, owner string, repo string, req *github.NewPullRequest, labels ...string) (*github.PullRequest, error)
func DetectVCSRoot ¶
func FirstCommit ¶
func GetQueryParameter ¶ added in v0.0.11
func IsGitConfigured ¶ added in v0.0.12
func LastCommitBody ¶ added in v0.0.2
func LastCommitSHA ¶ added in v0.0.2
func LastCommitSubject ¶ added in v0.0.2
func ListComments ¶
func ListLabelsByIssue ¶ added in v0.0.9
func ListPullRequestComment ¶
func ListReviews ¶
func LoadChangelog ¶ added in v0.0.2
func MarshalJson ¶
func MeetsCondition ¶
func MeetsCondition(fn ConditionFunc, sh *shell.Session, items ...string) bool
func NewGitHubClient ¶
func ParseComment ¶
func ParseReply ¶
func ParseRepoURL ¶
func RemoveLabel ¶ added in v0.0.3
func RepoModified ¶
func UniqComments ¶
func UpdateChangelog ¶
func WriteChangelogMarkdown ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.