Documentation ¶
Index ¶
- type RepositoryClient
- func (r *RepositoryClient) DownloadArtifacts(ctx context.Context, artifactList []*github.Artifact, dir, namePattern string, ...) ([]string, error)
- func (r *RepositoryClient) ListAllArtifacts(ctx context.Context) ([]*github.Artifact, error)
- func (r *RepositoryClient) ListCommitsFromPR(ctx context.Context, pullNum int) ([]string, error)
- func (r *RepositoryClient) ListPRComments(ctx context.Context, pullNum int) ([]*github.IssueComment, error)
- func (r *RepositoryClient) PostPRComment(ctx context.Context, pullNum int, data *string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepositoryClient ¶
func NewRepositoryClient ¶
func NewRepositoryClient(ctx context.Context, accessToken, owner, repo string, waitForQuotaReset bool) *RepositoryClient
func (*RepositoryClient) DownloadArtifacts ¶
func (r *RepositoryClient) DownloadArtifacts(ctx context.Context, artifactList []*github.Artifact, dir, namePattern string, after, before *time.Time) ([]string, error)
DownloadArtifacts tries to download artifacts from a artifact list to a directory based on name and time filtering. The client is required to have authentication. The function returns a list of successfully downloaded artifacts and error. Github API related errors are aggrgated and do not stop its following operations due to possible throttling.
func (*RepositoryClient) ListAllArtifacts ¶
func (*RepositoryClient) ListCommitsFromPR ¶
func (*RepositoryClient) ListPRComments ¶
func (r *RepositoryClient) ListPRComments(ctx context.Context, pullNum int) ([]*github.IssueComment, error)
func (*RepositoryClient) PostPRComment ¶
Click to show internal directories.
Click to hide internal directories.