git

package
v0.0.0-...-50955ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubAggregatedRepository

type GithubAggregatedRepository struct {
	// contains filtered or unexported fields
}

func NewGithubAggregatedRepository

func NewGithubAggregatedRepository(
	pullRequestsRepository *GithubPullRequestsRepository,
	commitsRepository *GithubCommitsRepository,
	commentRepository *GithubCommentsRepository,
	logger *zap.Logger,
) *GithubAggregatedRepository

func (*GithubAggregatedRepository) FetchAllFor

func (r *GithubAggregatedRepository) FetchAllFor(
	ctx context.Context,
	from time.Time,
	to time.Time,
	delta time.Duration,
	organization string,
	repositories []string,
) ([]*github.PullRequest, []*github.RepositoryCommit, []*github.PullRequestComment, error)

type GithubCommentsRepository

type GithubCommentsRepository struct {
	// contains filtered or unexported fields
}

func NewGithubCommentsRepository

func NewGithubCommentsRepository(client *github.Client, logger *zap.Logger) *GithubCommentsRepository

func (*GithubCommentsRepository) FindCommentsFor

func (r *GithubCommentsRepository) FindCommentsFor(
	ctx context.Context,
	organization string,
	repository string,
	number int,
) ([]*github.PullRequestComment, error)

type GithubCommitsRepository

type GithubCommitsRepository struct {
	// contains filtered or unexported fields
}

func NewGithubCommitsRepository

func NewGithubCommitsRepository(client *github.Client, logger *zap.Logger) *GithubCommitsRepository

func (*GithubCommitsRepository) FindCommitsFor

func (r *GithubCommitsRepository) FindCommitsFor(
	ctx context.Context,
	organization string,
	repository string,
	number int,
) ([]*github.RepositoryCommit, error)

type GithubPullRequestsRepository

type GithubPullRequestsRepository struct {
	// contains filtered or unexported fields
}

func NewGithubPullRequestsRepository

func NewGithubPullRequestsRepository(client *github.Client, logger *zap.Logger) *GithubPullRequestsRepository

func (*GithubPullRequestsRepository) FindPullRequestsFor

func (r *GithubPullRequestsRepository) FindPullRequestsFor(
	ctx context.Context,
	from time.Time,
	to time.Time,
	organization string,
	repositories []string,
) ([]*github.PullRequest, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL