pullrequest

package
v0.0.0-...-b81ffe0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pullrequest checks pull requests for specified labels

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Labels

type Labels []string

Labels represents a collection of GitHub labels, e.g. all the labels in a pull request

func (Labels) HasAllOf

func (l Labels) HasAllOf(specified []string, prefixMode bool) (bool, string)

HasAllOf indicates whether the labels contain all of the specified labels, along with a report describing the result.

func (Labels) HasAnyOf

func (l Labels) HasAnyOf(specified []string, prefixMode bool) (bool, string)

HasAnyOf indicates whether the labels contain any of the specified labels, along with a report describing the result.

func (Labels) HasExactlyOneOf

func (l Labels) HasExactlyOneOf(specified []string, prefixMode bool) (bool, string)

HasExactlyOneOf indicates whether the labels contain exactly one of the specified labels, along with a report describing the result.

func (Labels) HasNoneOf

func (l Labels) HasNoneOf(specified []string, prefixMode bool) (bool, string)

HasNoneOf indicates whether the labels contain none of the specified labels, along with a report describing the result.

type PullRequest

type PullRequest struct {
	Labels Labels
	// contains filtered or unexported fields
}

PullRequest encapsulates a GitHub Pull Request

func New

func New(repoOwner string, repo string, prNumber int, ghToken string, enterpriseEndpoint string) *PullRequest

New creates a new PullRequest

Jump to

Keyboard shortcuts

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