MCPcopy Index your code
hub / github.com/cli/cli / prStateWithDraft

Function prStateWithDraft

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

Source from the content-addressed store, hash-verified

475}
476
477func prStateWithDraft(pr *api.PullRequest) string {
478 if pr.IsDraft && pr.State == "OPEN" {
479 return "DRAFT"
480 }
481
482 return pr.State
483}

Callers 1

printRawPrPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected