diff --git a/source/plugins/skyline/metadata.yml b/source/plugins/skyline/metadata.yml index 732309a7..e96a6054 100644 --- a/source/plugins/skyline/metadata.yml +++ b/source/plugins/skyline/metadata.yml @@ -5,7 +5,8 @@ description: | > ⚠️ This plugin significantly increase file size, consider using it as standalone. examples: - default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.skyline.svg + +GitHub Skyline: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.skyline.svg + GitHub City: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.skyline.city.svg index: 26 supports: - user diff --git a/source/plugins/stargazers/index.mjs b/source/plugins/stargazers/index.mjs index e4f22111..88240b8d 100644 --- a/source/plugins/stargazers/index.mjs +++ b/source/plugins/stargazers/index.mjs @@ -24,7 +24,8 @@ export default async function({login, graphql, data, imports, q, queries, accoun const {repository: {stargazers: {edges}}} = await graphql(queries.stargazers({login: owner, repository, after: cursor ? `after: "${cursor}"` : "", location: _worldmap ? "node { location }" : ""})) cursor = edges?.[edges?.length - 1]?.cursor dates.push(...edges.map(({starredAt}) => new Date(starredAt))) - locations.push(...edges.map(({node: {location}}) => location)) + if (_worldmap) + locations.push(...edges.map(({node: {location}}) => location)) pushed = edges.length } while ((pushed) && (cursor)) console.debug(`metrics/compute/${login}/plugins > stargazers > loaded ${dates.length} stargazers for ${repository}`)