command

package
v0.0.0-...-139d2d7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder describes the builder of the cli commands.

func NewBuilder

func NewBuilder(cfg config.Config, userReposService userReposService, pullRequestsService pullRequestsService, repositoryService repositoryService, workflowService workflowService, tablePrinter tablePrinter, utils utilities) *Builder

NewBuilder creates and returns a new command builder.

func (*Builder) CommitList

func (b *Builder) CommitList() *Builder

CommitList is used to retrieve and print a list of all the commits between 2 tags or commits.

func (*Builder) CreateRelease

func (b *Builder) CreateRelease() *Builder

CreateRelease is used to create a new release tag using the provided tag value and also define the description of the new release.

func (*Builder) CreatedPullRequests

func (b *Builder) CreatedPullRequests() *Builder

CreatedPullRequests retrieves the number pull requests in a repo that have been created during a specific time period.

func (*Builder) Find

func (b *Builder) Find() *Builder

Find retrieves the repositories a user has access to and then allows the user to select multiple repos to retrieve the pull requests that are open against the selected repositories.

func (*Builder) GetCommands

func (b *Builder) GetCommands() []*cli.Command

GetCommands returns the list of allowed commands.

func (*Builder) PublishPullRequestMetrics

func (b *Builder) PublishPullRequestMetrics() *Builder

PublishPullRequestMetrics retrieves the metrics for pull requests and publishes them to google spreadsheets.

func (*Builder) PullRequests

func (b *Builder) PullRequests() *Builder

PullRequests retrieves the pull requests that the authenticated user has in a specific repo.

func (*Builder) ReleaseReport

func (b *Builder) ReleaseReport() *Builder

ReleaseReport is used to fetch the releases for a desired period and based on the provided pattern to prepare reports.

func (*Builder) UserRepos

func (b *Builder) UserRepos() *Builder

UserRepos retrieves the repositories that the authenticated used has access to.

func (*Builder) Widget

func (b *Builder) Widget() *Builder

Widget is used to display all the details in widgets in terminal.

func (*Builder) Workflows

func (b *Builder) Workflows() *Builder

Workflows retrieves the details of the workflows of a repository.

Jump to

Keyboard shortcuts

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