remote

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 3 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

Overview

Package remote holds what the forge.Remote implementations share: the names and messages of the branches, commits and pull requests they make.

Index

Constants

This section is empty.

Variables

View Source
var ErrRevertNotMerged = fmt.Errorf("revert refused: %w", forge.ErrNotMerged)

ErrRevertNotMerged is Revert's refusal of a pull request that is not merged.

Functions

func IsCommitSHA

func IsCommitSHA(ref string) bool

IsCommitSHA reports whether ref has the shape of a full commit SHA: 40 hexadecimal digits. A ref of that shape that names no branch and no commit is a missing commit, ErrFileNotFound.

func RevertBranch

func RevertBranch(pr forge.PullRequest) string

RevertBranch, RevertTitle and RevertMessage name what Revert makes, the same on every Remote. The "revert:" prefix keeps the title past a semantic pull request check.

func RevertMessage

func RevertMessage(pr forge.PullRequest, title, body string) string

func RevertTitle

func RevertTitle(title string) string

func StaleBranch

func StaleBranch(op string, repo forge.Repository, branch, base, prURL string) error

StaleBranch is forge.ErrStaleBranch from op naming the branch and, when it has one, its open pull request (prURL empty otherwise).

func UpdateMessage

func UpdateMessage(branch, base string) string

UpdateMessage is the message of the merge commit that brings an existing branch up to date with its base, a branch or a commit, the same on every Remote and in git merge's wording.

Types

This section is empty.

Jump to

Keyboard shortcuts

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