(diffHash)
| 185 | } |
| 186 | |
| 187 | function recordPR(diffHash) { |
| 188 | const state = readState(); |
| 189 | let recent = Array.isArray(state.recentDiffHashes) ? state.recentDiffHashes : []; |
| 190 | recent.push(diffHash); |
| 191 | if (recent.length > 20) recent = recent.slice(-20); |
| 192 | writeState({ |
| 193 | lastPRAt: new Date().toISOString(), |
| 194 | recentDiffHashes: recent, |
| 195 | }); |
| 196 | } |
| 197 | |
| 198 | function buildPRBody({ capsule, mutation, gene, blastRadius }) { |
| 199 | const score = capsule && capsule.outcome ? capsule.outcome.score : 0; |
no test coverage detected