Skip to content

Commit

Permalink
feat: log set
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcoindev committed Nov 8, 2023
1 parent 46d3f56 commit 69f01d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ async function main() {

// aggregate projects.urls and opt settings
let projectUrls = new Set<string>(projects.urls);

opt.in.forEach(async orgOrRepo => {
const urls: string[] = await getRepoUrls(orgOrRepo);
console.log(`opt in ${urls}`);
urls.forEach(url => projectUrls.add(url));
urls.forEach(url => { projectUrls.add(url); console.log(`added ${url}`);}) ;
});
opt.out.forEach(async orgOrRepo => {
const urls: string[] = await getRepoUrls(orgOrRepo);
console.log(`opt out ${urls}`);
urls.forEach(url => projectUrls.delete(url));
urls.forEach(url => { projectUrls.delete(url); console.log(`deleted ${url}`);});
});

// aggregate all project issues
Expand Down

0 comments on commit 69f01d4

Please sign in to comment.