From 7512f3fdc2ed8a82b3cdd9e1d3c47c9956d74f28 Mon Sep 17 00:00:00 2001 From: linguist <22963968+lowlighter@users.noreply.github.com> Date: Tue, 5 Jan 2021 18:52:56 +0100 Subject: [PATCH] Hotfix typo in action.yml v3.1 [release] --- action.yml | 2 +- source/plugins/stargazers/index.mjs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 3b002136..03e12b87 100644 --- a/action.yml +++ b/action.yml @@ -359,7 +359,7 @@ inputs: # Display stargazers evolution over the last two weeks # It shows total stargazers along with increase rate per day - plugin_stagazers: + plugin_stargazers: description: Display stargazers evolution over the last two weeks default: no diff --git a/source/plugins/stargazers/index.mjs b/source/plugins/stargazers/index.mjs index 94a3e87d..002e2765 100644 --- a/source/plugins/stargazers/index.mjs +++ b/source/plugins/stargazers/index.mjs @@ -18,7 +18,6 @@ console.debug(`metrics/compute/${login}/plugins > stargazers > retrieving stargazers of ${repository} after ${cursor}`) const {repository:{stargazers:{edges}}} = await graphql(queries.stargazers({login, repository, after:cursor ? `after: "${cursor}"` : ""})) cursor = edges?.[edges?.length-1]?.cursor - console.log(edges) dates.push(...edges.map(({starredAt}) => new Date(starredAt))) pushed = edges.length } while ((pushed)&&(cursor))