Hotfix typo in action.yml v3.1 [release]
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user