spr

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFilePath added in v0.4.0

func ConfigFilePath() string

func GitHubRemoteSource added in v0.4.0

func GitHubRemoteSource(config *Config) *remoteSource

func NewStackedPR

func NewStackedPR(config *Config, github *githubv4.Client, writer io.Writer, debug bool) *stackediff

NewStackedPR constructs and returns a new instance stackediff.

Types

type Config

type Config struct {
	GitHubRepoOwner string `yaml:"githubRepoOwner"`
	GitHubRepoName  string `yaml:"githubRepoName"`

	RequireChecks       bool `default:"true" yaml:"requireChecks"`
	RequireApproval     bool `default:"true" yaml:"requireApproval"`
	ShowPRLink          bool `default:"true" yaml:"showPRLink"`
	CleanupRemoteBranch bool `default:"true" yaml:"cleanupRemoteBranch"`
}

Config object to hold spr configuration

type SPRInterface added in v0.1.3

type SPRInterface interface {
	StatusPullRequests(ctx context.Context)
	UpdatePullRequests(ctx context.Context)
	MergePullRequests(ctx context.Context)
}

Jump to

Keyboard shortcuts

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