(pr)
| 107 | } |
| 108 | |
| 109 | function validatePrUrl(pr) { |
| 110 | if (!pr) return 'missing pull request URL'; |
| 111 | if (!/^https?:\/\/.+\/pull\/\d+/i.test(pr)) return 'PR must be a pull request URL'; |
| 112 | return null; |
| 113 | } |
| 114 | |
| 115 | function summarizeDashboard(snapshot) { |
| 116 | const pending = snapshot.pending || {}; |