Versions in this module Expand all Collapse all v0 v0.2.7 Aug 13, 2026 v0.2.6 Jul 30, 2026 v0.2.5 Jul 30, 2026 Changes in this version + var ErrAccountNotFound = errors.New("github account not found") + var ErrUnsupportedAccountType = errors.New("unsupported github account type") + func ErrorStatus(err error) (int, bool) + func IsRateLimitError(err error) bool + func LabelsMatch(jobLabels, required []string) bool + func RateLimitRetryAfter(err error) (string, bool) + func VerifyWebhookSignature(secret string, body []byte, signature string) bool + type Account struct + AvatarURL string + ID int64 + Login string + Name string + Type string + type AppAuth struct + AppID int64 + InstallationID int64 + PrivateKeyFile string + type Client struct + func NewAppClient(baseURL string, auth AppAuth, httpClient *http.Client) (*Client, error) + func NewBasicAuthClient(baseURL, username, password string, httpClient *http.Client) *Client + func NewClient(baseURL string, httpClient *http.Client) *Client + func NewTokenClient(baseURL, token string, httpClient *http.Client) *Client + func (c *Client) CreateRegistrationToken(ctx context.Context, repositoryFullName, runnerGroup string) (RegistrationToken, error) + func (c *Client) DownloadWorkflowJobLogs(ctx context.Context, repositoryFullName string, jobID int64) ([]byte, string, error) + func (c *Client) DownloadWorkflowRunLogs(ctx context.Context, repositoryFullName string, runID int64) ([]byte, string, error) + func (c *Client) GetAccount(ctx context.Context, login string) (Account, error) + func (c *Client) GetInstallation(ctx context.Context, installationID int64) (Installation, error) + func (c *Client) GetIssue(ctx context.Context, repositoryFullName string, number int64) (Issue, error) + func (c *Client) GetPullRequest(ctx context.Context, repositoryFullName string, number int64) (PullRequest, error) + func (c *Client) GetWorkflowJob(ctx context.Context, repositoryFullName string, jobID int64) (WorkflowJob, error) + func (c *Client) ListInstallationRepositories(ctx context.Context, installationID int64) ([]string, error) + func (c *Client) ListRunners(ctx context.Context, repositoryFullName, runnerGroup string) ([]Runner, error) + func (c *Client) ListUserInstallationRepositories(ctx context.Context, token string, installationID int64) ([]string, error) + func (c *Client) ListUserInstallations(ctx context.Context, token string) ([]Installation, error) + func (c *Client) ListUserOrganizationMemberships(ctx context.Context, token string) ([]OrganizationMembership, error) + func (c *Client) ListWorkflowRunJobs(ctx context.Context, repositoryFullName string, runID int64) ([]WorkflowJob, error) + func (c *Client) RemoveRunner(ctx context.Context, repositoryFullName, runnerGroup string, runnerID int64) error + func (c *Client) RemoveRunnerByName(ctx context.Context, repositoryFullName, runnerGroup, runnerName string) (bool, error) + func (c *Client) RunnerURL(repositoryFullName, runnerGroup string) (string, error) + type Installation struct + AccountAvatar string + AccountID int64 + AccountLogin string + AccountName string + AccountType string + ID int64 + Repositories []string + type InstallationRef struct + ID int64 + type Issue struct + Number int64 + Title string + type Labels []string + func (l *Labels) UnmarshalJSON(data []byte) error + type OrganizationMembership struct + OrganizationID int64 + OrganizationLogin string + Role string + State string + type PullRequest struct + Number int64 + Title string + type RegistrationToken struct + ExpiresAt time.Time + Token string + type Repository struct + FullName string + Name string + type Runner struct + Busy bool + ID int64 + Name string + Status string + type WorkflowJob struct + Conclusion string + HeadBranch string + ID int64 + Labels Labels + Name string + RunnerName string + Status string + WorkflowName string + type WorkflowJobEvent struct + Action string + Installation InstallationRef + Repository Repository + WorkflowJob WorkflowJob + WorkflowRun WorkflowRun + type WorkflowRun struct + HeadBranch string + ID int64 + Name string + type WorkflowRunEvent struct + Action string + Installation InstallationRef + Repository Repository + WorkflowRun WorkflowRun v0.2.4 Jul 23, 2026 v0.2.3 Jul 21, 2026 v0.2.2 Jul 15, 2026 v0.2.1 Jul 3, 2026