Documentation ¶
Index ¶
- func FailedUpdatingFile() errors.SlugError
- func FileAccessDenied() errors.SlugError
- func FileNotFound() errors.SlugError
- func RefAlreadyExists() errors.SlugError
- func RefNotFound() errors.SlugError
- func RepositoryAccessDenied() errors.SlugError
- func RepositoryNotFound() errors.SlugError
- func UnableToDecodeFileContent() errors.SlugError
- func UnknownError() errors.SlugError
- type Branch
- type ContentService
- type File
- type PullRequest
- type PullRequestService
- type PullRequestTemplate
- type Repository
- type RepositoryService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailedUpdatingFile ¶
func FileAccessDenied ¶
func FileNotFound ¶
func RefAlreadyExists ¶
func RefNotFound ¶
func RepositoryAccessDenied ¶
func RepositoryNotFound ¶
func UnknownError ¶
Types ¶
type ContentService ¶
type PullRequest ¶
type PullRequestService ¶
type PullRequestService interface { Create(ctx context.Context, repo Repository, targetBranch string, prTemplate PullRequestTemplate) (PullRequest, error) RequestReview(ctx context.Context, repo Repository, pr PullRequest, prTemplate PullRequestTemplate) error }
type PullRequestTemplate ¶
type Repository ¶
func LoadRepository ¶
func LoadRepository(owner, name, branchName string, branchSHA string) *Repository
type RepositoryService ¶
type RepositoryService interface { GetRepository(ctx context.Context, owner, name, sourceBranch string) (*Repository, error) CreateBranchFromSourceBranch(ctx context.Context, repo *Repository, branchName string) error }
Click to show internal directories.
Click to hide internal directories.