ghrn

package
v0.0.0-...-200e1da Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 7 Imported by: ? 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildReleaseNotes

func BuildReleaseNotes(ctx context.Context, w io.Writer, conf Config) error

BuildReleaseNotes lists GitHub Pull Requests and writes formatted release notes to the given writer.

Types

type Config

type Config struct {
	// Org is the name of the GitHub organization. Required.
	Org string
	// Repo is the name of the GitHub repository. Required.
	Repo string

	// GitHubToken is a GitHub API access token.
	GitHubToken string

	// StopAt is the number of the Pull Request to stop at.
	// Useful for building the notes of PRs since the last release, for example.
	StopAt int
	// IncludeCommits will include commmits messages for each PR.
	IncludeCommits bool
	// SinceLatestRelease will only include PRs and commits merged since the latest release tag.
	SinceLatestRelease bool
	// IncludeAuthor will prefix the message with an author of the PR
	IncludeAuthor bool
}

Config describes configuration for BuildReleaseNotes.

Jump to

Keyboard shortcuts

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