Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppsTransport added in v0.0.14

type AppsTransport struct {
	BaseURL string                // BaseURL is the scheme and host for GitHub API, defaults to https://api.github.com
	Client  ghinstallation.Client // Client to use to refresh tokens, defaults to http.Client with provided transport
	// contains filtered or unexported fields
}

func NewAppsTransport added in v0.0.14

func NewAppsTransport(tr http.RoundTripper, appID string, privateKey []byte) (*AppsTransport, error)

func NewAppsTransportFromPrivateKey added in v0.0.14

func NewAppsTransportFromPrivateKey(tr http.RoundTripper, appID string, key *rsa.PrivateKey) *AppsTransport

NewAppsTransportFromPrivateKey returns an AppsTransport using a crypto/rsa.(*PrivateKey).

func (*AppsTransport) RoundTrip added in v0.0.14

func (t *AppsTransport) RoundTrip(req *http.Request) (*http.Response, error)

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(repo string, pr int) *Client

func (*Client) PostComment

func (c *Client) PostComment(ctx context.Context, reports []definition.Report) error

func (*Client) PostCommentWithContext added in v0.0.3

func (c *Client) PostCommentWithContext(ctx context.Context, reports []definition.Report, isDryRun bool, environment string) error

func (*Client) PostCommentWithContextAndError added in v0.0.17

func (c *Client) PostCommentWithContextAndError(ctx context.Context, reports []definition.Report, isDryRun bool, environment string, executionErr error) error

Jump to

Keyboard shortcuts

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