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 ¶
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 ¶
Types ¶
type PullRequest ¶
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. |