Help us shape the future of Go! Take the 2026 Go Developer Survey

pr

package
v0.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateOpen     = "OPEN"
	StateMerged   = "MERGED"
	StateDeclined = "DECLINED"
)

State constants matching the Bitbucket API.

Variables

View Source
var NewClient = api.NewClient

NewClient is the API client constructor. Override in tests.

Functions

This section is empty.

Types

type PullRequest

type PullRequest struct {
	ID     int
	Title  string
	Author string
	Branch string // source branch name
	URL    string
	State  string
}

PullRequest is a Bitbucket pull request.

func List

func List(ctx context.Context, workspace, repoSlug, state string) ([]PullRequest, error)

List returns all pull requests for workspace/repo filtered by state. Use the State* constants for state.

Jump to

Keyboard shortcuts

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