Documentation ¶
Index ¶
- func CheckForRetry(resp *github.Response, err error) error
- type GithubAdapter
- func (c *GithubAdapter) GetChangelogForBranches(ctx context.Context, owner string, repo string, fromBranch string, ...) (*[]ScmCommit, error)
- func (c *GithubAdapter) GetChangelogForRefs(ctx context.Context, owner string, repo string, refFrom *ScmRef, refTo *ScmRef) (*[]ScmCommit, error)
- func (c *GithubAdapter) GetChangelogForTags(ctx context.Context, owner string, repo string, fromTag string, toTag string) (*[]ScmCommit, error)
- func (c *GithubAdapter) GetCommitFromTag(ctx context.Context, owner string, repo string, gitObj *github.GitObject) (*string, error)
- func (c *GithubAdapter) GetRepoBranch(ctx context.Context, owner string, repo string, branchName string) (*ScmRef, error)
- func (c *GithubAdapter) GetRepoCommitsForSha(ctx context.Context, owner string, repo string, toTag string) ([]*github.RepositoryCommit, error)
- func (c *GithubAdapter) GetRepoCompareCommits(ctx context.Context, owner string, repo string, fromSha string, toSha string) (*[]ScmCommit, error)
- func (c *GithubAdapter) GetRepoFile(ctx context.Context, owner string, repo string, sha string, filePath string) ([]byte, error)
- func (c *GithubAdapter) GetRepoTag(ctx context.Context, owner string, repo string, tagName string) (*ScmRef, error)
- func (c *GithubAdapter) GetUserRepos(ctx context.Context, user string) ([]ScmRepository, error)
- type ScmAdapter
- type ScmCommit
- type ScmRef
- type ScmRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GithubAdapter ¶
func NewGithubAdapter ¶
func (*GithubAdapter) GetChangelogForBranches ¶ added in v1.27.0
func (*GithubAdapter) GetChangelogForRefs ¶ added in v1.26.0
func (*GithubAdapter) GetChangelogForTags ¶ added in v1.26.0
func (*GithubAdapter) GetCommitFromTag ¶ added in v1.36.0
func (*GithubAdapter) GetRepoBranch ¶
func (*GithubAdapter) GetRepoCommitsForSha ¶ added in v1.26.0
func (c *GithubAdapter) GetRepoCommitsForSha(ctx context.Context, owner string, repo string, toTag string) ([]*github.RepositoryCommit, error)
func (*GithubAdapter) GetRepoCompareCommits ¶ added in v1.22.0
func (*GithubAdapter) GetRepoFile ¶
func (*GithubAdapter) GetRepoTag ¶ added in v1.21.0
func (*GithubAdapter) GetUserRepos ¶
func (c *GithubAdapter) GetUserRepos(ctx context.Context, user string) ([]ScmRepository, error)
type ScmAdapter ¶
type ScmAdapter interface { GetChangelogForBranches(ctx context.Context, owner string, repo string, fromBranch string, toBranch string) (*[]ScmCommit, error) GetChangelogForTags(ctx context.Context, owner string, repo string, fromTag string, toTag string) (*[]ScmCommit, error) GetRepoBranch(ctx context.Context, owner string, repo string, branchName string) (*ScmRef, error) GetRepoFile(ctx context.Context, owner string, repo string, sha string, filePath string) ([]byte, error) GetUserRepos(ctx context.Context, user string) ([]ScmRepository, error) }
Click to show internal directories.
Click to hide internal directories.