internal

package
v0.0.0-...-4e49b11 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDoesNotExist = errors.New("does not exist")

Functions

This section is empty.

Types

type ChangeRequest

type ChangeRequest struct {
	ID             int
	Title          string
	Description    string
	SourceBranch   string
	TargetBranch   string
	WebURL         string
	MarkdownWebURL string
}

Using ChangeRequest as a generic term to represent pull requests (github), merge requests (gitlab), diffs (phabricator), etc.

type Host

type Host interface {
	GetVocabulary() Vocabulary
	GetRepo(repoPath string) (Repo, error)
	// Returns ErrDoesNotExist if no change request exists for the given sourceBranch
	GetChangeReqeuest(repoPath string, sourceBranch string) (ChangeRequest, error)
	UpdateChangeRequest(repoPath string, r ChangeRequest) (ChangeRequest, error)
	CreateChangeRequest(repoPath string, r ChangeRequest) (ChangeRequest, error)
	CloseChangeRequest(repoPath string, r ChangeRequest) (ChangeRequest, error)
}

type Repo

type Repo struct {
	DefaultBranch string
}

type Vocabulary

type Vocabulary struct {
	ChangeRequestNameCapitalized string
	ChangeRequestName            string
	ChangeRequestNamePlural      string
	ChangeRequestNameShort       string
	ChangeRequestNameShortPlural string
}

Jump to

Keyboard shortcuts

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