Documentation
¶
Index ¶
Constants ¶
const ControlPlaneTabName = control.ControlPlaneTabName
ControlPlaneTabName is the name of the control plane tab in zellij
Variables ¶
This section is empty.
Functions ¶
func GetContext ¶
GetContext returns the root context that is cancelled on SIGINT/SIGTERM. This should be used by all subcommands instead of context.Background().
func SetVersionInfo ¶
func SetVersionInfo(v, c, d string)
SetVersionInfo sets the version information from main.go. This is called before Execute() to set the version injected by ldflags.
Types ¶
type CreatePRTaskResult ¶
type CreatePRTaskResult struct {
TaskID string
// PRExists is true if a PR already exists for this work
PRExists bool
PRURL string
}
CreatePRTaskResult contains the result of creating a PR task.
func CreatePRTask ¶
func CreatePRTask(ctx context.Context, proj *project.Project, workID string) (*CreatePRTaskResult, error)
CreatePRTask creates a PR task for a work unit. The work must be completed before a PR task can be created. Returns an error if the work is not completed, or PRExists=true if a PR already exists.
type CreateReviewTaskResult ¶
type CreateReviewTaskResult struct {
TaskID string
}
CreateReviewTaskResult contains the result of creating a review task.
func CreateReviewTask ¶
func CreateReviewTask(ctx context.Context, proj *project.Project, workID string) (*CreateReviewTaskResult, error)
CreateReviewTask creates a review task for a work unit. Review tasks examine code changes for quality and security issues. Returns the task ID of the created review task.