Documentation ¶
Index ¶
- func BranchName(issue *pm.Issue, message string) string
- func CurrentBranch() (string, error)
- func DefaultBranch(ctx context.Context) (string, error)
- func FindBranch(issueID string) (string, error)
- func GetIssueID() (string, error)
- func Output(options ...string) (string, string, error)
- func PrepBranchName(str string) string
- func Root() (string, error)
- func Run(options ...string) error
- type Bitbucket
- func (bb *Bitbucket) CreatePR(ctx context.Context, opt *PullRequestOptions) (PullRequest, error)
- func (bb *Bitbucket) DiffURL(ctx context.Context) (string, error)
- func (bb *Bitbucket) ListPRs(ctx context.Context) ([]PullRequest, error)
- func (bb *Bitbucket) ListUsers(ctx context.Context) (*bitbucket.WorkspaceMembers, error)
- func (bb *Bitbucket) MainBranchName(ctx context.Context) (string, error)
- type GitUrl
- type Github
- type Provider
- type PullRequest
- type PullRequestOptions
- type SimplePullRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentBranch ¶
func FindBranch ¶
func GetIssueID ¶
func PrepBranchName ¶
Types ¶
type Bitbucket ¶
type Bitbucket struct {
// contains filtered or unexported fields
}
func NewBitbucket ¶
func (*Bitbucket) CreatePR ¶
func (bb *Bitbucket) CreatePR(ctx context.Context, opt *PullRequestOptions) (PullRequest, error)
func (*Bitbucket) ListPRs ¶
func (bb *Bitbucket) ListPRs(ctx context.Context) ([]PullRequest, error)
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
func (*Github) CreatePR ¶
func (gh *Github) CreatePR(ctx context.Context, opt *PullRequestOptions) (PullRequest, error)
type Provider ¶
type PullRequest ¶
func CreatePR ¶
func CreatePR(ctx context.Context, opt *PullRequestOptions) (PullRequest, error)
type PullRequestOptions ¶
type SimplePullRequest ¶
type SimplePullRequest struct {
// contains filtered or unexported fields
}
func (*SimplePullRequest) GetCommentCount ¶
func (pr *SimplePullRequest) GetCommentCount() int
func (*SimplePullRequest) GetURL ¶
func (pr *SimplePullRequest) GetURL() string
Click to show internal directories.
Click to hide internal directories.