MCPcopy Index your code
hub / github.com/21st-dev/1code / mapPRState

Function mapPRState

src/main/lib/git/github/github.ts:149–157  ·  view source on GitHub ↗
(
	state: GHPRResponse["state"],
	isDraft: boolean,
)

Source from the content-addressed store, hash-verified

147}
148
149function mapPRState(
150 state: GHPRResponse["state"],
151 isDraft: boolean,
152): NonNullable<GitHubStatus["pr"]>["state"] {
153 if (state === "MERGED") return "merged";
154 if (state === "CLOSED") return "closed";
155 if (isDraft) return "draft";
156 return "open";
157}
158
159function mapReviewDecision(
160 decision: GHPRResponse["reviewDecision"],

Callers 1

getPRForBranchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected