pr

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package pr implements the "pr" CLI command. It fetches the merge-base commit of a GitHub pull request via the API and runs golangci-lint with --new-from-rev=<merge-base> so that only issues introduced by the PR are reported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*root.Config

	Flags   *ff.FlagSet
	Command *ff.Command
	// contains filtered or unexported fields
}

Config bundles the ff/v4 flag set, command node, GitHub credentials, and the shared root config for the pr subcommand.

func New

func New(parent *root.Config) *Config

New self-registers the pr subcommand under parent.

Jump to

Keyboard shortcuts

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