Documentation
¶
Overview ¶
Package github implements GitHub's pull-request API as a git publishing provider.
Index ¶
Constants ¶
View Source
const ProviderName = "github"
ProviderName identifies the GitHub pull request publisher.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider reconciles pull requests through GitHub's REST API.
func New ¶
func New() *Provider
New creates a GitHub pull request provider using the configured CI token.
func NewWithClientFactory ¶
NewWithClientFactory exists for fake HTTP client tests without exposing the go-github dependency to caller packages.
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.
Click to show internal directories.
Click to hide internal directories.