Documentation
¶
Overview ¶
Package azuredevops implements Azure DevOps' pull-request API as a git publishing provider.
Azure DevOps addresses a repository with three segments -- organization, project, and repository -- rather than GitHub's two (owner, repository). It maps onto the shared, forge-neutral atmosgit.PullRequestOptions as: Owner is the organization, Namespace is exactly one element (the project), and Repository is the repository name.
Index ¶
Constants ¶
const ProviderName = "azuredevops"
ProviderName identifies the Azure DevOps pull request publisher.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Provider)
Option configures a Provider (functional options pattern).
func WithBaseURL ¶
WithBaseURL overrides Azure DevOps' organization host, e.g. for tests or for Azure DevOps Server (on-premises) deployments that don't live under dev.azure.com.
func WithHTTPClient ¶
WithHTTPClient overrides the HTTP client used to call the Azure DevOps REST API. Primarily useful for tests, which point it at an httptest.Server (a *http.Client already satisfies pkghttp.Client).
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider reconciles pull requests through Azure DevOps' REST API.
func New ¶
New creates an Azure DevOps pull request provider authenticated with AZURE_DEVOPS_EXT_PAT.
func (*Provider) PullRequestBodyBadge ¶
PullRequestBodyBadge implements atmosgit.PullRequestBodyBadger.
func (*Provider) Reconcile ¶
func (p *Provider) Reconcile(ctx context.Context, options *atmosgit.PullRequestOptions) (*atmosgit.PullRequestResult, error)
Reconcile creates or updates a pull request and applies configured metadata.