MCPcopy Index your code
hub / github.com/conwnet/github1s / getRecentRepositories

Function getRecentRepositories

extensions/github1s/src/helpers/context.ts:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22const RECENT_REPOSITORIES = 'github1s-recent-repositories';
23export const getRecentRepositories = (): { name: string; timestamp: number }[] => {
24 return getExtensionContext().globalState.get(RECENT_REPOSITORIES) || [];
25};
26
27export const addRecentRepositories = (name: string, timestamp = 0) => {
28 const currentRecord = { name, timestamp: timestamp || Date.now() };

Callers 3

getRecentRepoPickItemsFunction · 0.90
addRecentRepositoriesFunction · 0.85
removeRecentRepositoryFunction · 0.85

Calls 1

getExtensionContextFunction · 0.85

Tested by

no test coverage detected