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

Function prStateWithDraft

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

Source from the content-addressed store, hash-verified

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

Callers 1

printRawPrPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected