MCPcopy Create free account
hub / github.com/cli/cli / prStateWithDraft

Function prStateWithDraft

pkg/cmd/pr/view/view.go:500–506  ·  view source on GitHub ↗
(pr *api.PullRequest)

Source from the content-addressed store, hash-verified

498}
499
500func prStateWithDraft(pr *api.PullRequest) string {
501 if pr.IsDraft && pr.State == "OPEN" {
502 return "DRAFT"
503 }
504
505 return pr.State
506}

Callers 1

printRawPrPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected