Documentation
¶
Index ¶
- func IterateOrgRepos(ctx context.Context, client *github.Client, org string, ...) error
- func IterateRepoCommits(client *github.Client, ctx context.Context, owner string, repo string, ...) error
- func IterateRepoIssues(ctx context.Context, client *github.Client, owner string, repo string, ...) error
- func IterateRepoPullRequests(ctx context.Context, client *github.Client, owner string, repo string, ...) error
- func IterateRepoReleases(client *github.Client, ctx context.Context, owner string, repo string, ...) error
- func IterateRepositoryWorkflowRuns(ctx context.Context, client *github.Client, owner string, repo string, ...) error
- func IterateWorkflowJobsForWorkflowRun(ctx context.Context, client *github.Client, run *github.WorkflowRun, ...) error
- func IterateWorkflowRunsForRepositoryRelease(ctx context.Context, client *github.Client, release *github.RepositoryRelease, ...) error
- func ListAllReposByOrg(ctx context.Context, client *github.Client, org string, ...) ([]*github.Repository, error)
- func MapOrgRepos[T any](ctx context.Context, client *github.Client, org string, ...) ([]T, error)
- func MapRepoCommits[T any](client *github.Client, ctx context.Context, owner string, repo string, ...) ([]T, error)
- func MapRepoIssues[T any](ctx context.Context, client *github.Client, owner string, repo string, ...) ([]T, error)
- func MapRepoPullRequests[T any](ctx context.Context, client *github.Client, owner string, repo string, ...) ([]T, error)
- func MapRepos[T any](ctx context.Context, client *github.Client, repos []string, ...) ([]T, error)
- func NewClient(ctx context.Context, token string) (*github.Client, error)
- func NewTokenFromEnvironment() (string, error)
- func ReduceOrgRepos[A any](ctx context.Context, client *github.Client, org string, ...) (A, error)
- func ReduceRepoCommits[A any](client *github.Client, ctx context.Context, owner string, repo string, ...) (A, error)
- func ReduceRepoIssues[A any](ctx context.Context, client *github.Client, org string, repo string, ...) (A, error)
- func ReduceRepoPullRequests[A any](ctx context.Context, client *github.Client, org string, repo string, ...) (A, error)
- func ReduceRepos[A any](ctx context.Context, client *github.Client, repos []string, initial A, ...) (A, error)
- func SplitFullRepoName(fullName string) (string, string, error)
- type IterRepoFunc
- type IterateCommitFunc
- type IterateIssueFunc
- type IteratePullRequestFunc
- type IterateReleaseFunc
- type IterateWorkflowJobFunc
- type IterateWorkflowRunsFunc
- type MapCommitFunc
- type MapIssueFunc
- type MapPullRequestFunc
- type MapRepoFunc
- type ReduceCommitFunc
- type ReduceIssueFunc
- type ReducePullRequestFunc
- type ReduceRepoFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterateOrgRepos ¶
func IterateOrgRepos(ctx context.Context, client *github.Client, org string, opts *github.RepositoryListByOrgOptions, f IterRepoFunc) error
func IterateRepoCommits ¶
func IterateRepoCommits(client *github.Client, ctx context.Context, owner string, repo string, opts *github.CommitsListOptions, f IterateCommitFunc) error
func IterateRepoIssues ¶
func IterateRepoIssues(ctx context.Context, client *github.Client, owner string, repo string, opts *github.IssueListByRepoOptions, f IterateIssueFunc) error
func IterateRepoPullRequests ¶
func IterateRepoPullRequests(ctx context.Context, client *github.Client, owner string, repo string, opts *github.PullRequestListOptions, f IteratePullRequestFunc) error
func IterateRepoReleases ¶
func IterateRepoReleases(client *github.Client, ctx context.Context, owner string, repo string, opts *github.ListOptions, f IterateReleaseFunc) error
func IterateRepositoryWorkflowRuns ¶
func IterateRepositoryWorkflowRuns(ctx context.Context, client *github.Client, owner string, repo string, opts *github.ListWorkflowRunsOptions, f IterateWorkflowRunsFunc) error
func IterateWorkflowJobsForWorkflowRun ¶
func IterateWorkflowJobsForWorkflowRun(ctx context.Context, client *github.Client, run *github.WorkflowRun, opts *github.ListWorkflowJobsOptions, f IterateWorkflowJobFunc) error
func IterateWorkflowRunsForRepositoryRelease ¶
func IterateWorkflowRunsForRepositoryRelease(ctx context.Context, client *github.Client, release *github.RepositoryRelease, opts *github.ListWorkflowRunsOptions, f IterateWorkflowRunsFunc) error
func ListAllReposByOrg ¶
func ListAllReposByOrg(ctx context.Context, client *github.Client, org string, opts *github.RepositoryListByOrgOptions) ([]*github.Repository, error)
func MapOrgRepos ¶
func MapOrgRepos[T any](ctx context.Context, client *github.Client, org string, opts *github.RepositoryListByOrgOptions, mapper MapRepoFunc[T]) ([]T, error)
func MapRepoCommits ¶
func MapRepoIssues ¶
func MapRepoPullRequests ¶
func NewTokenFromEnvironment ¶
func ReduceOrgRepos ¶
func ReduceOrgRepos[A any](ctx context.Context, client *github.Client, org string, opts *github.RepositoryListByOrgOptions, initial A, reducer ReduceRepoFunc[A]) (A, error)
func ReduceRepoCommits ¶
func ReduceRepoIssues ¶
func ReduceRepoPullRequests ¶
func ReduceRepos ¶
Types ¶
type IterRepoFunc ¶
type IterRepoFunc func(commit *github.Repository) (bool, error)
type IterateCommitFunc ¶
type IterateCommitFunc func(commit *github.RepositoryCommit) (bool, error)
type IteratePullRequestFunc ¶
type IteratePullRequestFunc func(commit *github.PullRequest) (bool, error)
type IterateReleaseFunc ¶
type IterateReleaseFunc func(release *github.RepositoryRelease) (bool, error)
type IterateWorkflowJobFunc ¶
type IterateWorkflowJobFunc func(job *github.WorkflowJob) (bool, error)
type IterateWorkflowRunsFunc ¶
type IterateWorkflowRunsFunc func(run *github.WorkflowRun) (bool, error)
type MapCommitFunc ¶
type MapCommitFunc[T any] func(commit *github.RepositoryCommit) (T, bool, error)
type MapPullRequestFunc ¶
type MapPullRequestFunc[T any] func(commit *github.PullRequest) (T, bool, error)
type MapRepoFunc ¶
type MapRepoFunc[T any] func(repo *github.Repository) (T, bool, error)
type ReduceCommitFunc ¶
type ReduceCommitFunc[A any] func(acc A, commit *github.RepositoryCommit) (A, bool, error)
type ReducePullRequestFunc ¶
type ReducePullRequestFunc[A any] func(acc A, repo *github.PullRequest) (A, bool, error)
type ReduceRepoFunc ¶
type ReduceRepoFunc[A any] func(acc A, repo *github.Repository) (A, bool, error)
Click to show internal directories.
Click to hide internal directories.