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

status

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package status derives a pull request's display status from GitHub fields.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status int
const (
	Ready Status = iota
	Draft
	WaitingOnCI
	CIFailing
	ChangesRequested
	Approved
)

func Derive

func Derive(isDraft bool, reviewDecision, ciState string) Status

Derive maps GitHub's isDraft, reviewDecision and statusCheckRollup.state to a Status. Precedence: draft, changes requested, CI failing, CI pending, approved, ready. A PR with no checks counts as green.

func (Status) Icon

func (s Status) Icon() string

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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