Add support for prefered license and gists count

This commit is contained in:
lowlighter
2020-10-10 21:01:01 +02:00
parent 66cd9d4f43
commit 66ace41b44
7 changed files with 55 additions and 13 deletions

24
action/dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -11,8 +11,9 @@
//Runner
try {
//Initialization
console.log(`GitHub metrics as SVG image [v1.2]`)
console.log(`GitHub metrics as SVG image`)
console.log(`========================================================`)
console.log(`Version | <#version>`)
process.on("unhandledRejection", error => { throw error })
//Load svg template, style and query
@@ -56,6 +57,8 @@
//Commit to repository
{
const rest = github.getOctokit(committer)
const {data:{login:committer}} = await rest.users.getAuthenticated()
console.log(`Committer | ${committer}`)
let sha = undefined
try {
const {data} = await rest.repos.getContent({