Documentation
¶
Overview ¶
Package bitbucket provides Bitbucket SCM integration for batch-tool.
Index ¶
- func New(ctx context.Context, project string) scm.Provider
- type Bitbucket
- func (b *Bitbucket) CheckCapabilities(opts *scm.PROptions) error
- func (b *Bitbucket) GetPullRequest(repo, branch string) (*scm.PullRequest, error)
- func (b *Bitbucket) ListRepositories() ([]*scm.Repository, error)
- func (b *Bitbucket) MergePullRequest(repo, branch string, _ *scm.PRMergeOptions) (*scm.PullRequest, error)
- func (b *Bitbucket) OpenPullRequest(repo, branch string, opts *scm.PROptions) (*scm.PullRequest, error)
- func (b *Bitbucket) UpdatePullRequest(repo, branch string, opts *scm.PROptions) (*scm.PullRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bitbucket ¶
type Bitbucket struct {
// contains filtered or unexported fields
}
Bitbucket represents an SCM provider for the Bitbucket v1 API.
func (*Bitbucket) CheckCapabilities ¶ added in v0.11.0
CheckCapabilities validates that the provided PR options are supported by Bitbucket.
func (*Bitbucket) GetPullRequest ¶
func (b *Bitbucket) GetPullRequest(repo, branch string) (*scm.PullRequest, error)
GetPullRequest retrieves a pull request by repository name and source branch.
func (*Bitbucket) ListRepositories ¶
func (b *Bitbucket) ListRepositories() ([]*scm.Repository, error)
ListRepositories lists all repositories in the specified project.
func (*Bitbucket) MergePullRequest ¶
func (b *Bitbucket) MergePullRequest(repo, branch string, _ *scm.PRMergeOptions) (*scm.PullRequest, error)
MergePullRequest merges an existing pull request.
func (*Bitbucket) OpenPullRequest ¶
func (b *Bitbucket) OpenPullRequest(repo, branch string, opts *scm.PROptions) (*scm.PullRequest, error)
OpenPullRequest opens a new pull request in the specified repository.
func (*Bitbucket) UpdatePullRequest ¶
func (b *Bitbucket) UpdatePullRequest(repo, branch string, opts *scm.PROptions) (*scm.PullRequest, error)
UpdatePullRequest updates an existing pull request.
Click to show internal directories.
Click to hide internal directories.