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

filter

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterPullRequests

func FilterPullRequests(prs []*github.PullRequest, filter *PRFilter) []*github.PullRequest

FilterPullRequests applies filters to a list of pull requests

func MatchesDraft

func MatchesDraft(pr *github.PullRequest, filterStatus string) bool

MatchesDraft checks if a PR matches the draft filter

Types

type PRFilter

type PRFilter struct {
	Author      string // Filter by author login (supports "me")
	Status      string // Filter by status (draft, approved, changes_requested, review_required)
	Branch      string // Filter by branch pattern (supports wildcards)
	CurrentUser string // Current authenticated user login (for "me")
}

PRFilter contains criteria for filtering pull requests

Jump to

Keyboard shortcuts

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