featuredetection

package
v2.49.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector interface {
	IssueFeatures() (IssueFeatures, error)
	PullRequestFeatures() (PullRequestFeatures, error)
	RepositoryFeatures() (RepositoryFeatures, error)
}

func NewDetector

func NewDetector(httpClient *http.Client, host string) Detector

type DisabledDetectorMock

type DisabledDetectorMock struct{}

func (*DisabledDetectorMock) IssueFeatures

func (md *DisabledDetectorMock) IssueFeatures() (IssueFeatures, error)

func (*DisabledDetectorMock) PullRequestFeatures

func (md *DisabledDetectorMock) PullRequestFeatures() (PullRequestFeatures, error)

func (*DisabledDetectorMock) RepositoryFeatures

func (md *DisabledDetectorMock) RepositoryFeatures() (RepositoryFeatures, error)

type EnabledDetectorMock

type EnabledDetectorMock struct{}

func (*EnabledDetectorMock) IssueFeatures

func (md *EnabledDetectorMock) IssueFeatures() (IssueFeatures, error)

func (*EnabledDetectorMock) PullRequestFeatures

func (md *EnabledDetectorMock) PullRequestFeatures() (PullRequestFeatures, error)

func (*EnabledDetectorMock) RepositoryFeatures

func (md *EnabledDetectorMock) RepositoryFeatures() (RepositoryFeatures, error)

type IssueFeatures

type IssueFeatures struct {
	StateReason bool
}

type PullRequestFeatures

type PullRequestFeatures struct {
	MergeQueue bool
	// CheckRunAndStatusContextCounts indicates whether the API supports
	// the checkRunCount, checkRunCountsByState, statusContextCount and stausContextCountsByState
	// fields on the StatusCheckRollupContextConnection
	CheckRunAndStatusContextCounts bool
	CheckRunEvent                  bool
}

type RepositoryFeatures

type RepositoryFeatures struct {
	PullRequestTemplateQuery bool
	VisibilityField          bool
	AutoMerge                bool
}

Jump to

Keyboard shortcuts

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