MCPcopy
hub / github.com/vonzosten/awesome-LangGraph / classifyRepo

Function classifyRepo

scripts/repo-checks.mjs:72–85  ·  view source on GitHub ↗
(repo, cutoffDate, isCommunityRepo)

Source from the content-addressed store, hash-verified

70}
71
72function 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
87function buildTable(title, rows) {
88 const lines = [];

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected