github

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ActionsBot = "github-actions[bot]"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(baseURL, token string) (*Client, error)

func (*Client) AutoMerge

func (c *Client) AutoMerge(ctx context.Context, full string, n int) error

func (*Client) ChangeByHead

func (c *Client) ChangeByHead(ctx context.Context, full, head string) (forge.Change, bool, error)

func (*Client) ChangeFiles

func (c *Client) ChangeFiles(ctx context.Context, full string, n int) ([]forge.File, error)

func (*Client) ChangedPaths

func (c *Client) ChangedPaths(ctx context.Context, full, base, head string) ([]string, error)

func (*Client) ChangesForCommit

func (c *Client) ChangesForCommit(ctx context.Context, full, sha string) ([]forge.Change, error)

func (*Client) Checks

func (c *Client) Checks(ctx context.Context, full, sha string) ([]forge.Check, error)

func (*Client) CloseChange

func (c *Client) CloseChange(ctx context.Context, full string, n int, deleteBranch bool) error

func (*Client) Comments

func (c *Client) Comments(ctx context.Context, full string, n int) ([]forge.Comment, error)

func (*Client) CreateComment

func (c *Client) CreateComment(ctx context.Context, full string, n int, body string) (forge.Comment, error)

func (*Client) CreateDeployment

func (c *Client) CreateDeployment(ctx context.Context, full, environment, sha string, payload []byte) (forge.Deployment, error)

func (*Client) CreateTag

func (c *Client) CreateTag(ctx context.Context, full, tag, sha string) error

func (*Client) DefaultBranch

func (c *Client) DefaultBranch(ctx context.Context, full string) (string, error)

func (*Client) FileAt

func (c *Client) FileAt(ctx context.Context, full, path, ref string) ([]byte, error)

func (*Client) GetChange

func (c *Client) GetChange(ctx context.Context, full string, n int) (forge.Change, error)

func (*Client) ListDeployments

func (c *Client) ListDeployments(ctx context.Context, full, environment string) iter.Seq2[forge.Deployment, error]

func (*Client) OpenChanges

func (c *Client) OpenChanges(ctx context.Context, full, headPrefix string) ([]forge.Change, error)

func (*Client) PushChange

func (c *Client) PushChange(ctx context.Context, full string, req forge.ChangeRequest) (forge.Change, error)

func (*Client) RepoSettings

func (c *Client) RepoSettings(ctx context.Context, full string) (forge.RepoSettings, error)

func (*Client) ResolveRef

func (c *Client) ResolveRef(ctx context.Context, full, ref string) (string, error)

func (*Client) SetDeploymentState

func (c *Client) SetDeploymentState(ctx context.Context, full string, id int64, state forge.DeployState, logURL string) error

func (*Client) Subtrees

func (c *Client) Subtrees(ctx context.Context, full, dir, ref string) (map[string]string, error)

func (*Client) UpdateComment

func (c *Client) UpdateComment(ctx context.Context, full string, id int64, body string) error

func (*Client) Viewer

func (c *Client) Viewer(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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