Documentation
¶
Index ¶
- func BuildPRURL(ctx *Context) string
- func CheckMergeable(ctx *Context) error
- func CommentCreate(ctx *Context, body string) (*gitprovider.Comment, error)
- func CommentList(ctx *Context) ([]*gitprovider.Comment, error)
- func Create(ctx *Context, title, body string) (*gitprovider.PullRequest, error)
- func Merge(ctx *Context, deleteAfterMerge bool) error
- func Modify(ctx *Context, title, body string) (*gitprovider.PullRequest, error)
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPRURL ¶
BuildPRURL constructs the full PR URL from the PR context.
func CheckMergeable ¶
CheckMergeable verifies the PR is not already merged and is mergeable. Returns an error if the PR cannot be merged (conflicts, failing CI, already merged).
func CommentCreate ¶
func CommentCreate(ctx *Context, body string) (*gitprovider.Comment, error)
func CommentList ¶
func CommentList(ctx *Context) ([]*gitprovider.Comment, error)
func Create ¶
func Create(ctx *Context, title, body string) (*gitprovider.PullRequest, error)
func Modify ¶
func Modify(ctx *Context, title, body string) (*gitprovider.PullRequest, error)
Types ¶
type Context ¶
type Context struct {
Task *taskwarrior.Task
Owner string
Repo string
Provider gitprovider.Provider
Info *gitprovider.RepoInfo
}
func ResolveContext ¶
Click to show internal directories.
Click to hide internal directories.