Help us shape the future of Go! Take the 2026 Go Developer Survey

pr

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package pr is the pull or merge request's flow on the command line: `workflow pr`, which opens one for the checked-out branch and makes the offers that follow, and `workflow announce`, which tells the team about it, at once or once its CI passes. They are one package because `pr --announce` hands what it opened to announce's wait, and `pr --json`'s report carries fields only the two of them read.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoCommitsToOpen = errors.New("no branch with commits to open a pull request for")

ErrNoCommitsToOpen refuses opening a pull request with nothing to propose. It is told through forgeWordedError, in the forge's own noun.

View Source
var ErrNoPullRequest = errors.New("there is no pull request on this branch to announce")

ErrNoPullRequest refuses announcing a branch that has no pull request. It is told through forgeWordedError, in the forge's own noun.

View Source
var ErrOnlyReadyWaits = errors.New("only a ready-for-review announcement waits for CI")

ErrOnlyReadyWaits refuses to wait for the CI of a pull request that is not ready for review: one merged has no CI left to wait for.

View Source
var ErrPullAlreadyOpen = errors.New("an open pull request already exists for this branch")

ErrPullAlreadyOpen refuses opening a second pull request for a branch that already has an open one. It is told through forgeWordedError, in the forge's own noun.

Functions

func NewAnnounceCmd

func NewAnnounceCmd(prompt cmdkit.Prompt) *cobra.Command

NewAnnounceCmd builds `workflow announce`.

func NewCmd

func NewCmd(prompt cmdkit.Prompt) *cobra.Command

NewCmd builds `workflow pr`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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