Versions in this module Expand all Collapse all v1 v1.2.1 Jan 15, 2025 v1.2.0 Jan 7, 2025 v1.1.4 Mar 17, 2024 v1.1.3 Mar 13, 2024 v1.1.2 Mar 12, 2024 v1.1.1 Mar 6, 2024 Changes in this version + type GithubUser struct + Email string + ID int + Login string type Repo + func (r *Repo) GetAuthUser(ctx context.Context) (*GithubUser, error) type Repository + GetAuthUser func(ctx context.Context) (*GithubUser, error) v1.1.0 Jan 24, 2024 v1.0.7 Jan 9, 2024 v1.0.6 Jan 9, 2024 v1.0.5 Jan 9, 2024 v1.0.4 Jan 6, 2024 v1.0.3 Jan 6, 2024 v1.0.2 Jan 5, 2024 v1.0.1 Jan 3, 2024 v1.0.0 Jan 2, 2024 Changes in this version + type Actor struct + AvatarUrl string + Id int64 + Login string + type GithubBranch struct + Name string + type GithubConfig struct + Token string + type GithubRepository struct + AllowAutoMerge bool + AllowMergeCommit bool + AllowRebaseMerge bool + AllowSquashMerge bool + Archived bool + CreatedAt time.Time + DefaultBranch string + DeleteBranchOnMerge bool + Description string + Disabled bool + Forks int + ForksCount int + FullName string + HasDownloads bool + HasIssues bool + HasPages bool + HasProjects bool + HasWiki bool + Id int + IsTemplate bool + Language interface{} + License struct{ ... } + Name string + NetworkCount int + NodeId string + OpenIssues int + OpenIssuesCount int + Permissions struct{ ... } + Private bool + PushedAt time.Time + Size int + StargazersCount int + SubscribersCount int + TempCloneToken string + TemplateRepository interface{} + Topics []string + UpdatedAt time.Time + Visibility string + Watchers int + WatchersCount int + type GithubWorkflowRunLogs struct + Download string + TotalSize int + Url string + type HttpClient interface + Do func(req *http.Request) (*http.Response, error) + type InitializeOptions struct + HTTPTimeout time.Duration + type Repo struct + Client HttpClient + func New(cfg *pkgconfig.Config) *Repo + func (r *Repo) CancelWorkflow(ctx context.Context, repository string, runId int64) error + func (r *Repo) GetRepository(ctx context.Context, repository string) (*GithubRepository, error) + func (r *Repo) GetTriggerableWorkflows(ctx context.Context, repository string) ([]Workflow, error) + func (r *Repo) GetWorkflowRunLogs(ctx context.Context, repository string, runId int64) (GithubWorkflowRunLogs, error) + func (r *Repo) GetWorkflows(ctx context.Context, repository string) ([]Workflow, error) + func (r *Repo) InspectWorkflowContent(ctx context.Context, repository string, branch string, workflowFile string) ([]byte, error) + func (r *Repo) ListBranches(ctx context.Context, repository string) ([]GithubBranch, error) + func (r *Repo) ListRepositories(ctx context.Context) ([]GithubRepository, error) + func (r *Repo) ListWorkflowRuns(ctx context.Context, repository string, branch string) (*WorkflowRuns, error) + func (r *Repo) ReRunFailedJobs(ctx context.Context, repository string, runId int64) error + func (r *Repo) ReRunWorkflow(ctx context.Context, repository string, runId int64) error + func (r *Repo) TestConnection(ctx context.Context) error + func (r *Repo) TriggerWorkflow(ctx context.Context, repository string, branch string, workflowName string, ...) error + type Repository interface + CancelWorkflow func(ctx context.Context, repository string, runId int64) error + GetRepository func(ctx context.Context, repository string) (*GithubRepository, error) + GetTriggerableWorkflows func(ctx context.Context, repository string) ([]Workflow, error) + GetWorkflowRunLogs func(ctx context.Context, repository string, runId int64) (GithubWorkflowRunLogs, error) + GetWorkflows func(ctx context.Context, repository string) ([]Workflow, error) + InspectWorkflowContent func(ctx context.Context, repository string, branch string, workflowFile string) ([]byte, error) + ListBranches func(ctx context.Context, repository string) ([]GithubBranch, error) + ListRepositories func(ctx context.Context) ([]GithubRepository, error) + ListWorkflowRuns func(ctx context.Context, repository string, branch string) (*WorkflowRuns, error) + ReRunFailedJobs func(ctx context.Context, repository string, runId int64) error + ReRunWorkflow func(ctx context.Context, repository string, runId int64) error + TestConnection func(ctx context.Context) error + TriggerWorkflow func(ctx context.Context, repository string, branch string, workflowName string, ...) error + type Workflow struct + HtmlUrl string + ID int64 + Name string + Path string + State string + UpdatedAt time.Time + Url string + type WorkflowRun struct + Actor Actor + ArtifactsURL string + CancelURL string + CheckSuiteURL string + Conclusion string + CreatedAt time.Time + DisplayTitle string + Event string + HTMLURL string + HeadBranch string + ID int64 + JobsURL string + LogsURL string + Name string + Path string + RerunURL string + RunAttempt int + Status string + TriggeringActor Actor + UpdatedAt time.Time + WorkflowID int64 + type WorkflowRuns struct + TotalCount int64 + WorkflowRuns []WorkflowRun