github

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

func New(host, token string) (*Provider, error)

New creates a GitHub provider. For hosts other than github.com the GitHub Enterprise API prefix (/api/v3) is used.

func NewWithClient

func NewWithClient(client *github.Client) *Provider

NewWithClient creates a provider with a pre-configured client (used in tests).

func (*Provider) SetCommitStatus

func (p *Provider) SetCommitStatus(ctx context.Context, ref types.CommitRef, status types.CommitStatus) error

SetCommitStatus posts a commit status via the GitHub commit statuses API.

func (*Provider) SupportsCollapsibleSections

func (p *Provider) SupportsCollapsibleSections() bool

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 creates the report comment or, when comment.Update is set, edits the previous report comment identified by the marker.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL