UNPKG

@bifravst/ci

Version:

Sets up the permissions in our CI account for all repositories in this account to be able to use it for CI runs.

10 lines (9 loc) 287 B
import { readFile } from 'node:fs/promises'; export const loadRepoList = async (location) => (await readFile(location, 'utf-8')) .trim() .split('\n') .filter((s) => !s.startsWith('#')) .map((s) => { const [owner, name] = s.split('/'); return { owner, name }; });