Fixes
This commit is contained in:
@@ -13,9 +13,10 @@ app.post("/repo_change", (request, response) => {
|
||||
exec(`cd ${body.repository.name} && ls`, function (err, out, stderr) {
|
||||
console.log(out)
|
||||
exec(
|
||||
'scc --format json --remap-all "":"Misc."',
|
||||
`cd ${body.repository.name} && scc --format json --remap-all "":"Misc."`,
|
||||
function (err, out, stderr) {
|
||||
const svgString = gradientBadge({
|
||||
console.log(out)
|
||||
const svgString = gradientBadge({
|
||||
subject: "Lines of Code", // <text>
|
||||
status: `${JSON.parse(out)[0].Lines}`, // <text>
|
||||
gradient: ["0f8fff"], // array of colors (Hexadecimal or name)
|
||||
|
||||
Reference in New Issue
Block a user