Use committer.token instead of token to retrieve SHA and minor comments changes

This commit is contained in:
lowlighter
2021-01-30 23:44:47 +01:00
parent a7515454cc
commit ed97262d40
7 changed files with 16 additions and 11 deletions

View File

@@ -5,6 +5,7 @@
import setup from "../metrics/setup.mjs"
import mocks from "../mocks/index.mjs"
import metrics from "../metrics/index.mjs"
process.on("unhandledRejection", error => { throw error })
//Debug message buffer
let DEBUG = true
@@ -31,7 +32,6 @@
//Initialization
info.break()
info.section(`Metrics`)
process.on("unhandledRejection", error => { throw error })
//Skip process if needed
if ((github.context.eventName === "push")&&(github.context.payload?.head_commit)) {
@@ -133,7 +133,8 @@
object(expression: "${committer.branch}:${filename}") { ... on Blob { oid } }
}
}
`
`,
{headers:{authorization:`token ${committer.token}`}}
)
committer.sha = oid
} catch (error) { console.debug(error) }