Tucker McKnight <tmcknight@instructure.com> | Mon Jan 19 2026
[WIP] add ahead/behind commit count for branches. Something is currently broken here.
316 317 318 319 320
// FILE.TS
const flatFilesData = flatFiles(reposData)
eleventyConfig.addTemplate(
'repos/file.11ty.js',
htmlPage(reposConfiguration, eleventyConfig, fileJsTemplate),316 317 318 319 320 321
// FILE.TS
const flatFilesData = flatFiles(reposData)
console.log(flatFilesData.filter(entry => entry.file.includes('njk')))
eleventyConfig.addTemplate(
'repos/file.11ty.js',
htmlPage(reposConfiguration, eleventyConfig, fileJsTemplate),8 9 10 11 12
const result = await exec(command)
let files = result.stdout.split("\n").filter(item => item.length > 0 && item != ".")
// TODO: this could be better. This is adding each sub-path of a file to a set, so that
// we don't wind up with repeats, and then converting that back into an array. E.g. if
// we have two files:8 9 10 11 12 13 14 15
const result = await exec(command)
let files = result.stdout.split("\n").filter(item => item.length > 0 && item != ".")
if (branchName === 'main') {
console.log(files)
}
// TODO: this could be better. This is adding each sub-path of a file to a set, so that
// we don't wind up with repeats, and then converting that back into an array. E.g. if
// we have two files:5 6 7 8 9 10
"noImplicitAny": false,
"module": "node18",
"target": "es6",
"lib": ["es2023", "dom"],
"allowJs": true,
"outDir": "dist"
},5 6 7 8 9 10
"noImplicitAny": false,
"module": "node18",
"target": "es6",
"lib": ["esnext", "dom"],
"allowJs": true,
"outDir": "dist"
},