spr

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 `yaml:"requireChecks"`
	RequireApproval bool `yaml:"requireApproval"`

	ShowPRLink bool `yaml:"showPRLink"`
}

Config object to hold spr configuration

func ReadConfig

func ReadConfig() *Config

ReadConfig looks for a .spr.yml file in the root git directory.

if found, the config is read and returned.
if not found, a default config is created written to the config file and
 returned.

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