issues

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FromPlanOptions added in v1.6.0

type FromPlanOptions struct {
	File     string
	DryRun   bool
	AssignMe bool
	Labels   []string
}

FromPlanOptions configures issue generation from a plan file.

type IssueGeneratorService

type IssueGeneratorService interface {
	GenerateFromDiff(ctx context.Context, hint string, skipLabels bool, autoTemplate bool, explicitTemplate *models.IssueTemplate) (*models.IssueGenerationResult, error)
	GenerateFromDescription(ctx context.Context, description string, skipLabels bool, autoTemplate bool, explicitTemplate *models.IssueTemplate) (*models.IssueGenerationResult, error)
	GenerateFromPR(ctx context.Context, prNumber int, hint string, skipLabels bool, autoTemplate bool, explicitTemplate *models.IssueTemplate) (*models.IssueGenerationResult, error)
	GenerateWithTemplate(ctx context.Context, templateName string, hint string, fromDiff bool, description string, skipLabels bool) (*models.IssueGenerationResult, error)
	CreateIssue(ctx context.Context, result *models.IssueGenerationResult, assignees []string) (*models.Issue, error)
	FindSimilarOpenIssues(ctx context.Context, title string) ([]models.Issue, error)
	GetAuthenticatedUser(ctx context.Context) (string, error)
	InferBranchName(issueNumber int, labels []string) string
	LinkIssueToPR(ctx context.Context, prNumber int, issueNumber int) error
}

IssueGeneratorService is a minimal interface for testing purposes

type IssueServiceProvider

type IssueServiceProvider func(ctx context.Context) (IssueGeneratorService, error)

type IssueTemplateService

type IssueTemplateService interface {
	InitializeTemplates(ctx context.Context, force bool) error
	GetTemplatesDir(ctx context.Context) (string, error)
	ListTemplates(ctx context.Context) ([]models.TemplateMetadata, error)
}

IssueTemplateService is a minimal interface for testing purposes

type IssuesCommandFactory

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

IssuesCommandFactory is the factory to create the issues command.

func NewIssuesCommandFactory

func NewIssuesCommandFactory(issueServiceProvider IssueServiceProvider, templateService IssueTemplateService) *IssuesCommandFactory

NewIssuesCommandFactory creates a new instance of the factory.

func (*IssuesCommandFactory) CreateCommand

func (f *IssuesCommandFactory) CreateCommand(t *i18n.Translations, cfg *config.Config) *cli.Command

CreateCommand creates the main issues command with its subcommands.

Jump to

Keyboard shortcuts

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