pullrequest

package
v1.6.32 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 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 added in v0.5.3

type Labels []string

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

func (Labels) HasAllOf added in v0.8.0

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 added in v0.9.0

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 added in v0.5.3

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 added in v0.7.0

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 added in v0.5.3

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

PullRequest encapsulates a GitHub Pull Request

func New added in v0.5.3

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