Function
classifyRepo
(repo, cutoffDate, isCommunityRepo)
Source from the content-addressed store, hash-verified
| 70 | } |
| 71 | |
| 72 | function classifyRepo(repo, cutoffDate, isCommunityRepo) { |
| 73 | const pushedAt = repo.pushed_at ? new Date(repo.pushed_at) : null; |
| 74 | const archived = Boolean(repo.archived); |
| 75 | const outdated = isCommunityRepo ? (pushedAt ? pushedAt < cutoffDate : true) : false; |
| 76 | |
| 77 | return { |
| 78 | slug: repo.full_name, |
| 79 | url: repo.html_url, |
| 80 | archived, |
| 81 | pushedAt, |
| 82 | outdated, |
| 83 | isCommunityRepo, |
| 84 | }; |
| 85 | } |
| 86 | |
| 87 | function buildTable(title, rows) { |
| 88 | const lines = []; |
Tested by
no test coverage detected