workbenches

package
v0.12.60 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(clients pluralclient.Plural) cli.Command

Types

type GitPullRequestRepository

type GitPullRequestRepository struct{}

func (GitPullRequestRepository) CommitSubject

func (GitPullRequestRepository) CommitSubject(ref string) (string, error)

func (GitPullRequestRepository) RemoteURL

func (GitPullRequestRepository) RemoteURL() (string, error)

type PRFollowupOptions

type PRFollowupOptions struct {
	Prompt      string
	DeferBy     time.Duration
	PullRequest PullRequestOptions
	SkipMissing bool
}

type PRFollowupResult

type PRFollowupResult struct {
	PromptID        string `json:"promptId"`
	PullRequestURL  string `json:"pullRequestUrl"`
	WorkbenchJobURL string `json:"workbenchJobUrl"`
	Skipped         bool   `json:"skipped"`
}

type PRFollowupService

type PRFollowupService struct {
	// contains filtered or unexported fields
}

func NewPRFollowupService

func NewPRFollowupService(client console.ConsoleClient, resolver PullRequestURLResolver) *PRFollowupService

func (*PRFollowupService) Create

type ProviderName

type ProviderName string
const (
	ProviderAuto      ProviderName = "auto"
	ProviderGitHub    ProviderName = "github"
	ProviderGitLab    ProviderName = "gitlab"
	ProviderBitbucket ProviderName = "bitbucket"
)

type PullRequestOptions

type PullRequestOptions struct {
	URL      string
	Commit   string
	BaseURL  string
	Provider string
}

type PullRequestProvider

type PullRequestProvider interface {
	Name() ProviderName
	Supports(host string) bool
	PullRequestNumber(subject string) (string, bool)
	PullRequestURL(repositoryURL, number string) string
}

type PullRequestRepository

type PullRequestRepository interface {
	CommitSubject(ref string) (string, error)
	RemoteURL() (string, error)
}

type PullRequestResolver

type PullRequestResolver struct {
	// contains filtered or unexported fields
}

func NewPullRequestResolver

func NewPullRequestResolver(repository PullRequestRepository) *PullRequestResolver

func (*PullRequestResolver) Resolve

func (r *PullRequestResolver) Resolve(options PullRequestOptions) (string, error)

type PullRequestURLResolver

type PullRequestURLResolver interface {
	Resolve(options PullRequestOptions) (string, error)
}

type Workbenches

type Workbenches struct {
	pluralclient.Plural
	// contains filtered or unexported fields
}

func NewWorkbenches

func NewWorkbenches(clients pluralclient.Plural) *Workbenches

func (*Workbenches) Command

func (w *Workbenches) Command() cli.Command

Jump to

Keyboard shortcuts

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