Documentation
¶
Overview ¶
Package github publishes pipeline report comments to GitHub pull requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider posts report comments via the GitHub Issues comments API (pull request conversation comments are issue comments).
func New ¶
New creates a GitHub provider. For hosts other than github.com the GitHub Enterprise API prefix (/api/v3) is used.
func NewWithClient ¶
NewWithClient creates a provider with a pre-configured client (used in tests).
func (*Provider) SetCommitStatus ¶
func (*Provider) SupportsCollapsibleSections ¶
SupportsCollapsibleSections reports that GitHub renders embedded HTML (<details>/<summary>) inside markdown comments.
func (*Provider) UpsertComment ¶
func (p *Provider) UpsertComment(ctx context.Context, ref types.PullRequestRef, comment types.Comment) error
UpsertComment publishes the report comment per comment.Strategy: update edits the previous report comment identified by the marker, recreate posts a new comment and then deletes the stale ones (create-first, so a cleanup failure never leaves the pull request without a report), new always posts.