Hotfix typo in action.yml v3.1 [release]

This commit is contained in:
linguist
2021-01-05 18:52:56 +01:00
parent efbf8d6eb0
commit 7512f3fdc2
2 changed files with 1 additions and 2 deletions

View File

@@ -359,7 +359,7 @@ inputs:
# Display stargazers evolution over the last two weeks # Display stargazers evolution over the last two weeks
# It shows total stargazers along with increase rate per day # It shows total stargazers along with increase rate per day
plugin_stagazers: plugin_stargazers:
description: Display stargazers evolution over the last two weeks description: Display stargazers evolution over the last two weeks
default: no default: no

View File

@@ -18,7 +18,6 @@
console.debug(`metrics/compute/${login}/plugins > stargazers > retrieving stargazers of ${repository} after ${cursor}`) 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}"` : ""})) const {repository:{stargazers:{edges}}} = await graphql(queries.stargazers({login, repository, after:cursor ? `after: "${cursor}"` : ""}))
cursor = edges?.[edges?.length-1]?.cursor cursor = edges?.[edges?.length-1]?.cursor
console.log(edges)
dates.push(...edges.map(({starredAt}) => new Date(starredAt))) dates.push(...edges.map(({starredAt}) => new Date(starredAt)))
pushed = edges.length pushed = edges.length
} while ((pushed)&&(cursor)) } while ((pushed)&&(cursor))