common

package
v11.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitMessageParts

func CommitMessageParts(message string) (title, body string)

CommitMessageParts splits the given commit message into its header and body parts.

Types

type Config

type Config struct {
	// bearer token to authenticate with the API
	APIToken string

	// Hostname override
	Hostname string

	// the Organization within the hosting platform that owns the repo
	Organization string

	// repo name within the organization
	Repository string
}

Config contains data needed by all platform connectors.

func (Config) HostnameWithStandardPort

func (self Config) HostnameWithStandardPort() string

type Log

type Log interface {
	Start(template string, data ...interface{})
	Success()
	Failed(err error)
}

Log allows hosting adapters to print network operations to the CLI. TODO: target the respective struct in the CLI package directly?

type SHAForBranchFunc

type SHAForBranchFunc func(domain.BranchName) (domain.SHA, error)

TODO: remove and replace with a direct link to git.BackendCommands.

Jump to

Keyboard shortcuts

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