FreesideWeb/internal/_data/contributors.js

14 lines
436 B
JavaScript
Raw Normal View History

const Cache = require("@11ty/eleventy-cache-assets");
//todo: change this to actual repo when it's no longer private
2021-09-08 18:09:35 +01:00
const repo = "FreesideHull/FreesideWeb"
module.exports = async function() {
console.log( "Fetching github contribuitors" );
// GitHub API: https://developer.github.com/v3/repos/#get
return await Cache(`https://api.github.com/repos/${repo}/contributors`, {
duration: "1d", // 1 day
type: "json"
});
};