Skip to content

Commit

Permalink
feat: add getRepoUrls logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcoindev committed Nov 8, 2023
1 parent d1889ed commit ecf78b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async function getAllIssues(ownerName: string, repoName: string) {
async function getRepoUrls(orgOrRepo: string) {
const params = orgOrRepo.split("/");
let repos: string[] = [];

console.log(`Params ${params}, lenght ${params.length}`);
switch (params.length) {
case 1: // org
try {
Expand All @@ -262,7 +262,7 @@ async function getRepoUrls(orgOrRepo: string) {
});
repos = res.map((repo) => repo.html_url);
} catch (e: unknown) {
console.warn(`Getting org repositories failed: ${e}`);
console.warn(`Getting ${orgOrRepo} org repositories failed: ${e}`);
}
break;
case 2: // owner/repo
Expand Down

0 comments on commit ecf78b0

Please sign in to comment.