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

Function mapReviewDecision

src/main/lib/git/github/github.ts:159–165  ·  view source on GitHub ↗
(
	decision: GHPRResponse["reviewDecision"],
)

Source from the content-addressed store, hash-verified

157}
158
159function mapReviewDecision(
160 decision: GHPRResponse["reviewDecision"],
161): NonNullable<GitHubStatus["pr"]>["reviewDecision"] {
162 if (decision === "APPROVED") return "approved";
163 if (decision === "CHANGES_REQUESTED") return "changes_requested";
164 return "pending";
165}
166
167function parseChecks(rollup: GHPRResponse["statusCheckRollup"]): CheckItem[] {
168 if (!rollup || rollup.length === 0) {

Callers 1

getPRForBranchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected