spr

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AmendCommit

func AmendCommit(ctx context.Context)

AmendCommit enables one to easily ammend a commit in the middle of a stack

of commits. A list of commits is printed and one can be chosen to be ammended.

func NewStackedPR

func NewStackedPR(config *Config, 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"`
}

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.

Jump to

Keyboard shortcuts

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