Versions in this module Expand all Collapse all v0 v0.1.4 Nov 20, 2026 v0.1.3 Nov 20, 2026 Changes in this version + func NotAccessible(err error) bool v0.1.2 Nov 18, 2026 Changes in this version + const ImmutableReleasesAll + const ImmutableReleasesNone + const ImmutableReleasesSelected type Client + func (c *Client) DeleteHostedRunner(ctx context.Context, org string, id int64) error + func (c *Client) EnforceImmutableReleases(ctx context.Context, org string) error + func (c *Client) OrgImmutableReleases(ctx context.Context, org string) (string, error) v0.1.1 Nov 10, 2026 v0.1.0 Nov 10, 2026 Changes in this version + const AllRepositories + const BypassAlways + const BypassIntegration + const DefaultBase + const DefaultBranchPattern + const RulesetActive + const RulesetTargetBranch + const RulesetTargetTag + const TokenEnv + const VisibilityAll + const VisibilityPrivate + const VisibilitySelected + func BotAccount(ctx context.Context, open func(token string) *Client, ...) (string, error) + func IssuedByApp(token string) string + func ManifestFormURL(organization, state string) string + func Moved(err error) bool + func NotFound(err error) bool + func Token(ctx context.Context) (string, error) + type Account struct + Login string + Type string + type App struct + ClientID string + ClientSecret string + Events []string + HTMLURL string + ID int64 + Name string + Owner Account + PEM string + Permissions map[string]string + Slug string + WebhookSecret string + type Branch struct + Commit Object + Name string + type BranchPolicy struct + CustomBranchPolicies bool + ProtectedBranches bool + type BypassActor struct + ActorID int64 + ActorType string + BypassMode string + type CheckApp struct + ID int64 + Slug string + type CheckRun struct + App CheckApp + Conclusion string + Name string + Status string + type Client struct + func New(base, token string) *Client + func Open(ctx context.Context) (*Client, error) + func (c *Client) AddEnvironmentBranch(ctx context.Context, owner, repo, name, pattern string) error + func (c *Client) App(ctx context.Context) (*App, error) + func (c *Client) AppBySlug(ctx context.Context, slug string) (*App, error) + func (c *Client) AppInstallations(ctx context.Context) ([]Installation, error) + func (c *Client) Archive(ctx context.Context, owner, repo string) error + func (c *Client) Base() string + func (c *Client) CheckRuns(ctx context.Context, owner, repo, ref string) ([]CheckRun, error) + func (c *Client) CloseIssue(ctx context.Context, owner, repo string, number int) error + func (c *Client) Compare(ctx context.Context, owner, repo, base, head string) (*Comparison, error) + func (c *Client) Contents(ctx context.Context, owner, repo, path, ref string) ([]byte, error) + func (c *Client) ConvertManifest(ctx context.Context, code string) (*App, error) + func (c *Client) CreateBlob(ctx context.Context, owner, repo string, content []byte) (string, error) + func (c *Client) CreateComment(ctx context.Context, owner, repo string, number int, body string) error + func (c *Client) CreateCommit(ctx context.Context, owner, repo, message, tree string, parents []string) (string, error) + func (c *Client) CreateDeployment(ctx context.Context, owner, repo string, d *DeploymentRequest) (int64, error) + func (c *Client) CreateDeploymentStatus(ctx context.Context, owner, repo string, id int64, s *DeploymentStatus) error + func (c *Client) CreateHostedRunner(ctx context.Context, org string, in HostedRunnerRequest) (*HostedRunner, error) + func (c *Client) CreateIssue(ctx context.Context, owner, repo, title, body string) (*Issue, error) + func (c *Client) CreateOrgRuleset(ctx context.Context, org string, in *Ruleset) (*Ruleset, error) + func (c *Client) CreateOrgVariable(ctx context.Context, org string, v Variable) error + func (c *Client) CreatePullRequest(ctx context.Context, owner, repo string, in PullRequestRequest) (*PullRequest, error) + func (c *Client) CreateRef(ctx context.Context, owner, repo, ref, sha string) error + func (c *Client) CreateRepository(ctx context.Context, org string, in RepositoryRequest) (*Repository, error) + func (c *Client) CreateRuleset(ctx context.Context, owner, repo string, in *Ruleset) (*Ruleset, error) + func (c *Client) CreateRunnerGroup(ctx context.Context, org string, in RunnerGroup) (*RunnerGroup, error) + func (c *Client) CreateTree(ctx context.Context, owner, repo, baseTree string, entries []TreeEntry) (string, error) + func (c *Client) DeleteEnvironmentSecret(ctx context.Context, owner, repo, environment, name string) error + func (c *Client) DeleteOrgRuleset(ctx context.Context, org string, id int64) error + func (c *Client) DeleteOrgSecret(ctx context.Context, org, name string) error + func (c *Client) DeleteOrgVariable(ctx context.Context, org, name string) error + func (c *Client) Deployments(ctx context.Context, owner, repo, environment string) ([]int64, error) + func (c *Client) Directory(ctx context.Context, owner, repo, path, ref string) ([]DirEntry, error) + func (c *Client) DispatchWorkflow(ctx context.Context, owner, repo, file, ref string, inputs map[string]string) error + func (c *Client) Empty(ctx context.Context, owner, repo string) (bool, error) + func (c *Client) Environment(ctx context.Context, owner, repo, name string) (*Environment, error) + func (c *Client) EnvironmentBranches(ctx context.Context, owner, repo, name string) ([]string, error) + func (c *Client) EnvironmentPatterns(ctx context.Context, owner, repo, name string) (branches, tags []string, err error) + func (c *Client) EnvironmentSecret(ctx context.Context, owner, repo, environment, name string) (*EnvironmentSecret, error) + func (c *Client) GetCommit(ctx context.Context, owner, repo, sha string) (*Commit, error) + func (c *Client) HostedRunners(ctx context.Context, org string) ([]HostedRunner, error) + func (c *Client) InstallationToken(ctx context.Context, installation int64) (string, error) + func (c *Client) IssueComments(ctx context.Context, owner, repo string, number int) ([]Comment, error) + func (c *Client) LatestPullRequest(ctx context.Context, owner, repo, base string) (*PullRequest, error) + func (c *Client) OpenIssue(ctx context.Context, owner, repo, title string) (*Issue, error) + func (c *Client) OpenRunnerGroup(ctx context.Context, org string, id int64, public bool) error + func (c *Client) OrgInstallations(ctx context.Context, org string) ([]OrgInstallation, error) + func (c *Client) OrgMembership(ctx context.Context, org string) (string, error) + func (c *Client) OrgRuleset(ctx context.Context, org string, id int64) (*Ruleset, error) + func (c *Client) OrgRulesets(ctx context.Context, org string) ([]Ruleset, error) + func (c *Client) OrgSecret(ctx context.Context, org, name string) (*OrgSecret, error) + func (c *Client) OrgSecretRepositories(ctx context.Context, org, name string) ([]Repository, error) + func (c *Client) OrgVariable(ctx context.Context, org, name string) (*Variable, error) + func (c *Client) PullRequestState(ctx context.Context, owner, repo string, number int) (string, error) + func (c *Client) PullRequestsFrom(ctx context.Context, owner, repo, branch string) ([]PullRequest, error) + func (c *Client) PutEnvironment(ctx context.Context, owner, repo, name string) error + func (c *Client) PutEnvironmentSecret(ctx context.Context, owner, repo, environment, name string, value []byte) error + func (c *Client) PutOrgSecret(ctx context.Context, org, name string, value []byte, repositoryIDs []int64) error + func (c *Client) Ref(ctx context.Context, owner, repo, ref string) (*Ref, error) + func (c *Client) Release(ctx context.Context, owner, repo, tag string) (*Release, error) + func (c *Client) RenameBranch(ctx context.Context, owner, repo, branch, newName string) error + func (c *Client) Repository(ctx context.Context, owner, repo string) (*Repository, error) + func (c *Client) RepositoryInstallation(ctx context.Context, owner, repo string) (int64, error) + func (c *Client) RepositorySettings(ctx context.Context, owner, repo string) (*RepositorySettings, error) + func (c *Client) Ruleset(ctx context.Context, owner, repo string, id int64) (*Ruleset, error) + func (c *Client) Rulesets(ctx context.Context, owner, repo string) ([]Ruleset, error) + func (c *Client) RunnerGroups(ctx context.Context, org string) ([]RunnerGroup, error) + func (c *Client) SetOrgSecretRepositories(ctx context.Context, org, name string, repositoryIDs []int64) error + func (c *Client) SetRepositoryPrivate(ctx context.Context, owner, repo string, private bool) error + func (c *Client) TagCommit(ctx context.Context, owner, repo, tag string) (string, error) + func (c *Client) Tags(ctx context.Context, owner, repo string) ([]Tag, error) + func (c *Client) UpdateComment(ctx context.Context, owner, repo string, id int64, body string) error + func (c *Client) UpdateHostedRunner(ctx context.Context, org string, id, group int64, maximum int) error + func (c *Client) UpdateOrgRuleset(ctx context.Context, org string, id int64, in *Ruleset) error + func (c *Client) UpdateOrgVariable(ctx context.Context, org string, v Variable) error + func (c *Client) UpdateRef(ctx context.Context, owner, repo, ref, sha string, force bool) error + func (c *Client) UpdateRepositorySettings(ctx context.Context, owner, repo string, in *RepositorySettings) error + func (c *Client) UpdateRuleset(ctx context.Context, owner, repo string, id int64, in *Ruleset) error + func (c *Client) User(ctx context.Context) (string, error) + func (c *Client) Workflows(ctx context.Context, owner, repo string) ([]Workflow, error) + type ClientFunc func(ctx context.Context) (*Client, error) + type Comment struct + Body string + ID int64 + type Commit struct + SHA string + Tree Object + type ComparedFile struct + Filename string + type Comparison struct + Files []ComparedFile + MergeBaseCommit Object + Status string + type DeploymentRequest struct + AutoMerge bool + Description string + Environment string + Ref string + RequiredContexts []string + TransientEnvironment bool + type DeploymentStatus struct + AutoInactive bool + Description string + EnvironmentURL string + LogURL string + State string + type DirEntry struct + Name string + SHA string + Type string + type Environment struct + BranchPolicy *BranchPolicy + Name string + type EnvironmentSecret struct + Name string + UpdatedAt time.Time + type Error struct + Message string + Method string + Path string + Status int + func (e *Error) Error() string + type HookAttributes struct + Active bool + URL string + type HostedRunner struct + ID int64 + Image RunnerImage + MachineSize *MachineSize + MaximumRunners int + Name string + RunnerGroupID int64 + Status string + type HostedRunnerRequest struct + EnableStaticIP bool + Image RunnerImage + MaximumRunners int + Name string + RunnerGroupID int64 + Size string + type Installation struct + Account Account + AppID int64 + ID int64 + RepositorySelection string + type Issue struct + HTMLURL string + Number int + State string + Title string + type MachineSize struct + CPUCores int + ID string + type Manifest struct + DefaultEvents []string + DefaultPermissions map[string]string + Description string + HookAttributes HookAttributes + Name string + Public bool + RedirectURL string + SetupOnUpdate bool + SetupURL string + URL string + type Object struct + SHA string + Type string + type OrgInstallation struct + AppID int64 + AppSlug string + ID int64 + RepositorySelection string + type OrgSecret struct + Name string + UpdatedAt time.Time + Visibility string + type PullRequest struct + Base PullRequestRef + HTMLURL string + Head PullRequestRef + MergedAt string + Number int + State string + Title string + type PullRequestRef struct + Ref string + SHA string + type PullRequestRequest struct + Base string + Body string + Head string + Title string + type Ref struct + Object Object + Ref string + type RefNameCondition struct + Exclude []string + Include []string + type Release struct + Author User + Body string + TagName string + type Repository struct + Archived bool + DefaultBranch string + FullName string + HTMLURL string + ID int64 + Name string + Private bool + type RepositoryNameCondition struct + Exclude []string + Include []string + type RepositoryRequest struct + AutoInit bool + Description string + Name string + Private bool + type RepositorySettings struct + AllowMergeCommit *bool + AllowRebaseMerge *bool + AllowSquashMerge *bool + AllowUpdateBranch *bool + DeleteBranchOnMerge *bool + SquashMergeCommitMessage *string + SquashMergeCommitTitle *string + type Rule struct + Parameters map[string]any + Type string + type Ruleset struct + BypassActors []BypassActor + Conditions *RulesetConditions + Enforcement string + ID int64 + Name string + Rules []Rule + Target string + type RulesetConditions struct + RefName RefNameCondition + RepositoryName *RepositoryNameCondition + type RunnerGroup struct + AllowsPublicRepositories bool + Default bool + ID int64 + Name string + Visibility string + type RunnerImage struct + ID string + Source string + type Tag struct + Commit Object + Name string + type TokenFunc func(ctx context.Context) (string, error) + type TreeEntry struct + Mode string + Path string + SHA string + Type string + type User struct + Login string + type Variable struct + Name string + Value string + Visibility string + type WaitFunc func(ctx context.Context, d time.Duration) error + type Workflow struct + ID int64 + Name string + Path string + State string