Remove ownerAffiliations: OWNER constraint and add option to include forks (#61)

This commit is contained in:
Simon Lecoq
2021-01-14 13:33:46 +01:00
committed by GitHub
parent 9632f5faf6
commit c34e73fa68
19 changed files with 64 additions and 45 deletions

View File

@@ -14,9 +14,6 @@
const {user:{starredRepositories:{edges:repositories}}} = await graphql(queries.starred({login, limit}))
//Format starred repositories
for (const edge of repositories) {
//Formats values
edge.node.stargazers = imports.format(edge.node.stargazerCount)
edge.node.forks = imports.format(edge.node.forkCount)
//Format date
const time = (Date.now()-new Date(edge.starredAt).getTime())/(24*60*60*1000)
let updated = new Date(edge.starredAt).toDateString().substring(4)