pr

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPRURL

func BuildPRURL(ctx *Context) string

BuildPRURL constructs the full PR URL from the PR context.

func CheckMergeable

func CheckMergeable(ctx *Context) error

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 Merge

func Merge(ctx *Context, deleteAfterMerge bool) 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

func ResolveContext() (*Context, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL