nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1module.exports = async ({ github, context, targetSha }) => {
2 const { content, encoding } = (
3 await github.rest.repos.getContent({
4 ...context.repo,
5 path: 'pkgs/top-level/release-supported-systems.json',
6 ref: targetSha,
7 })
8 ).data
9 return JSON.parse(Buffer.from(content, encoding).toString())
10}