types

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowedRepo

type AllowedRepo struct {
	Organization string `header:"Organization name"`
	Name         string `header:"URL"`
}

AllowedRepo represents a single repository under a GitHub organization that this tool may operate on

type AnnotatedEvent

type AnnotatedEvent struct {
	Event       Event
	Description string
}

AnnotatedEvent is used in printing the final report. It contains the info to print a section's table - both its Event for looking up the tagged repos, and the human-legible description for printing above the table

type Event

type Event string

Event is a generic tracking occurrence that RunStats manages

type NoArgumentsPassedErr

type NoArgumentsPassedErr struct{}

func (NoArgumentsPassedErr) Error

func (NoArgumentsPassedErr) Error() string

type NoBranchNameErr

type NoBranchNameErr struct{}

func (NoBranchNameErr) Error

func (NoBranchNameErr) Error() string

type NoCommandSuppliedErr

type NoCommandSuppliedErr struct{}

func (NoCommandSuppliedErr) Error

func (NoCommandSuppliedErr) Error() string

type NoGithubOauthTokenProvidedErr

type NoGithubOauthTokenProvidedErr struct{}

func (NoGithubOauthTokenProvidedErr) Error

type NoGithubOrgSuppliedErr

type NoGithubOrgSuppliedErr struct{}

func (NoGithubOrgSuppliedErr) Error

type NoRepoFlagTargetsValid added in v0.0.12

type NoRepoFlagTargetsValid struct{}

func (NoRepoFlagTargetsValid) Error added in v0.0.12

type NoRepoSelectionsMadeErr

type NoRepoSelectionsMadeErr struct{}

func (NoRepoSelectionsMadeErr) Error

type NoReposFoundErr

type NoReposFoundErr struct {
	GithubOrg string
}

func (NoReposFoundErr) Error

func (err NoReposFoundErr) Error() string

type NoValidReposFoundAfterFilteringErr

type NoValidReposFoundAfterFilteringErr struct{}

func (NoValidReposFoundAfterFilteringErr) Error

type OpenPrRequest added in v0.0.15

type OpenPrRequest struct {
	Repo    *github.Repository
	Branch  string
	Delay   time.Duration
	Retries int
}

type PullRequest

type PullRequest struct {
	Repo string `header:"Repo name"`
	URL  string `header:"PR URL"`
}

PullRequest is a simple two column representation of the repo name and its PR url

type ReducedRepo

type ReducedRepo struct {
	Name string `header:"Repo name"`
	URL  string `header:"Repo url"`
}

ReducedRepo is a simplified form of the github.Repository struct

type RunReport

type RunReport struct {
	Repos             map[Event][]*github.Repository
	SkippedRepos      map[Event][]*github.Repository
	Command           []string
	SelectionMode     string
	RuntimeSeconds    int
	FileProvidedRepos []*AllowedRepo
	PullRequests      map[string]string
	DraftPullRequests map[string]string
}

Jump to

Keyboard shortcuts

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