change

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package change holds the shared code-change identity used across SubmitQueue, Stovepipe, and other repo-local domains. A Change names code to act on via provider URIs; the URI parsers live in the github, phabricator, and git subpackages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	// URIs identifies the change(s) to land (RFC 3986 compliant).
	// The scheme identifies the change provider, and the path contains provider-specific resource identifiers.
	//
	// GitHub is supported by default (though other providers can be added):
	//   Template: "<scheme>://<org>/<repo>/pull/<pr>/<head_commit_sha>"
	//   Example:  "github://uber/submitqueue/pull/123/c3a4d5e6f7890123456789abcdef0123456789ab"
	//   Schemes:  "github", "ghe", "ghes". Head commit SHA must be full 40-char lowercase hex.
	//
	URIs []string `json:"uris"`
}

Change represents a code change identified by URIs from a code change provider (e.g., GitHub Pull Request, Phabricator Diff). The provider is extracted from the URI scheme. The object is immutable after creation.

Directories

Path Synopsis
Package changeutil holds small helpers shared across the entity/change provider subpackages (github, git, ...).
Package changeutil holds small helpers shared across the entity/change provider subpackages (github, git, ...).
Package git parses change IDs that use the git:// URI scheme.
Package git parses change IDs that use the git:// URI scheme.

Jump to

Keyboard shortcuts

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