Documentation
¶
Index ¶
- Variables
- func ParseRepoURL(repoURL string) (owner, repo string, err error)
- type Client
- func (c *Client) AssignReviewers(ctx context.Context, prNumber int, team string) error
- func (c *Client) CreatePullRequest(ctx context.Context, title, body, head, base string) (string, int, error)
- func (c *Client) FindPRURLByBranch(ctx context.Context, branchName string) (string, error)
- func (c *Client) GetCreatorPR(ctx context.Context, prNumber int) (*CreatorPR, error)
- func (c *Client) GetPRQuickstartFiles(ctx context.Context, pr *CreatorPR) (string, []File, error)
- func (c *Client) ListCreatorPRs(ctx context.Context) ([]CreatorPR, error)
- type CreatorPR
- type File
- type GitHubOperations
- type PRCreator
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("creator pull request not found")
)
Functions ¶
func ParseRepoURL ¶
Types ¶
type Client ¶
type Client struct {
Owner string
Repo string
Token string
ForkOwner string
// contains filtered or unexported fields
}
func (*Client) AssignReviewers ¶
func (*Client) CreatePullRequest ¶
func (*Client) FindPRURLByBranch ¶
func (*Client) GetCreatorPR ¶
func (*Client) GetPRQuickstartFiles ¶
type GitHubOperations ¶
type GitHubOperations interface {
CreatePullRequest(ctx context.Context, title, body, head, base string) (string, int, error)
AssignReviewers(ctx context.Context, prNumber int, team string) error
ListCreatorPRs(ctx context.Context) ([]CreatorPR, error)
GetCreatorPR(ctx context.Context, prNumber int) (*CreatorPR, error)
GetPRQuickstartFiles(ctx context.Context, pr *CreatorPR) (string, []File, error)
FindPRURLByBranch(ctx context.Context, branchName string) (string, error)
}
type PRCreator ¶
type PRCreator = GitHubOperations
PRCreator is kept as an alias so existing handler construction still compiles during the rename; prefer GitHubOperations.
Click to show internal directories.
Click to hide internal directories.