Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface {
// CreatePullRequest runs `gh pr create`
CreatePullRequest(ctx context.Context, title string, body string) (string, error)
// GetIssueDetails fetches basic details for a given issue ID
GetIssueDetails(ctx context.Context, issueID string) (title string, body string, err error)
}
Adapter defines the interface for GitHub CLI operations
type MockAdapter ¶
type MockAdapter struct {
MockPRURL string
MockIssueTitle string
MockIssueBody string
MockError error
}
MockAdapter provides a mock implementation for testing
func NewMockAdapter ¶
func NewMockAdapter() *MockAdapter
NewMockAdapter creates a new mock adapter with sample data
func (*MockAdapter) CreatePullRequest ¶
func (m *MockAdapter) CreatePullRequest(ctx context.Context, title string, body string) (string, error)
CreatePullRequest implements the Adapter interface with mock data
func (*MockAdapter) GetIssueDetails ¶
GetIssueDetails implements the Adapter interface with mock data
Click to show internal directories.
Click to hide internal directories.