Documentation
¶
Index ¶
- func NewClient(client *http.Client, accessToken string, ...) (*github.Client, error)
- type CacheConditionCallback
- type Caching
- type Impl
- func (r *Impl) CreatePullRequestComment(ctx context.Context, owner, repoName, pullRequestID, text string) error
- func (r *Impl) GetChangedFilesOnPullRequest(ctx context.Context, repoPath, repoName, pullRequestID, toRef string) ([]repository.File, string, error)
- func (r *Impl) GetUser(ctx context.Context, username string) (string, error)
- func (r *Impl) SetCommitStatusFailed(ctx context.Context, owner, repoName, commitID, url string, statusKey string) error
- func (r *Impl) SetCommitStatusInProgress(ctx context.Context, owner, repoName, commitID, url string, statusKey string) error
- func (r *Impl) SetCommitStatusSucceeded(ctx context.Context, owner, repoName, commitID, url string, statusKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheConditionCallback ¶
type Caching ¶
type Caching struct { Wrapped *http.Client Cache *httpcache.Transport UseCacheCondition CacheConditionCallback }
func NewCaching ¶
func NewCaching( wrapped *http.Client, useCacheCondition CacheConditionCallback, ) *Caching
type Impl ¶
type Impl struct { CustomConfig config.CustomConfiguration // contains filtered or unexported fields }
func (*Impl) CreatePullRequestComment ¶
func (*Impl) GetChangedFilesOnPullRequest ¶
func (*Impl) SetCommitStatusFailed ¶
func (*Impl) SetCommitStatusInProgress ¶
Click to show internal directories.
Click to hide internal directories.