( decision: GHPRResponse["reviewDecision"], )
| 157 | } |
| 158 | |
| 159 | function 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 | |
| 167 | function parseChecks(rollup: GHPRResponse["statusCheckRollup"]): CheckItem[] { |
| 168 | if (!rollup || rollup.length === 0) { |