Skip to content

Commit

Permalink
Projects may not have a Github repo
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineleclair committed May 25, 2024
1 parent ea97131 commit 032bceb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/projects/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default class ProjectsList extends Command {
const res = await request({method: 'GET', url, discoConfig})
const respBody = (await res.json()) as {projects: Project[]}
for (const project of respBody.projects) {
this.log(`${project.name} (${project.github.fullName})`)
const githubRepoPart = project.github ? ` (${project.github.fullName})` : ''
this.log(`${project.name}${githubRepoPart}`)
}
}
}

0 comments on commit 032bceb

Please sign in to comment.