releaseapproval

package
v1.55.18 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 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 releaseapproval describes a release that is waiting for approval: the Slack message the release workflow posts, and the summary it shows on the workflow run page.

Index

Constants

View Source
const MaxPullRequests = 50

MaxPullRequests caps how many pull requests the message lists, so a large release stays within Slack's message limits.

Variables

This section is empty.

Functions

func Message

func Message(r Release) string

Message returns the Slack mrkdwn text announcing that r is waiting for approval, followed by the pull requests it includes.

func Summary

func Summary(r Release) string

Summary returns the GitHub-flavored markdown shown on the workflow run page, so approvers can see exactly what they are approving. Unlike Message, it lists every pull request.

Types

type PullRequest

type PullRequest struct {
	Number string
	Title  string
}

PullRequest is a pull request included in a release.

func ParsePullRequests

func ParsePullRequests(subjects string) []PullRequest

ParsePullRequests extracts the pull requests from commit subjects, one per line, in the order given. Subjects without a trailing "(#123)" are commits pushed without a pull request, and are skipped.

type Release

type Release struct {
	ServerURL    string // e.g. https://github.com
	Repository   string // e.g. stripe/stripe-cli
	Tag          string
	PreviousTag  string // the latest release before this one
	Commit       string // full sha of the commit being released
	Actor        string
	RunURL       string
	PullRequests []PullRequest
}

Release describes a release that is waiting for approval.

Directories

Path Synopsis
Command release-approval-message reads commit subjects on stdin, one per line, and describes the release that is waiting for approval.
Command release-approval-message reads commit subjects on stdin, one per line, and describes the release that is waiting for approval.

Jump to

Keyboard shortcuts

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