featuredetection

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 1 Imported by: 0 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

Overview

Package featuredetection provides feature detection for Bitbucket. Unlike GitHub, Bitbucket doesn't have GraphQL and we rely on REST API versioning. This package provides stubs for compatibility with code migrated from gh CLI.

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)
}

Detector detects features available on a Bitbucket instance.

func NewDetector

func NewDetector(_ interface{}, _ bbrepo.Interface) Detector

NewDetector creates a new feature detector for Bitbucket.

type IssueFeatures

type IssueFeatures struct {
	// Bitbucket Cloud always supports issue tracker (if enabled)
	StateReason bool
}

IssueFeatures represents features available for issues.

type PullRequestFeatures

type PullRequestFeatures struct {
	// Bitbucket Cloud supports these features
	MergeQueue    bool
	CheckRunEvent bool
}

PullRequestFeatures represents features available for pull requests.

type RepositoryFeatures

type RepositoryFeatures struct {
	// Bitbucket Cloud supports these features
	AutoMerge             bool
	VisibilityField       bool
	IssueTemplateMutation bool
	IssueTemplateQuery    bool
}

RepositoryFeatures represents features available for repositories.

Jump to

Keyboard shortcuts

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