Skip to content

Commit a32a9c8

Browse files
author
Adrian Mato
committed
fix: enhance repository selection prompt to indicate archived repositories
1 parent 8270950 commit a32a9c8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ui.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,14 @@ async function promptSelectRepositories(repositories) {
9898
multiple: true,
9999
footer: '—————————————————————————————————————————————————',
100100
format: (value) => style.green(value),
101-
choices: repositories.map(({ full_name }) => full_name),
101+
choices: repositories.map((repo) => {
102+
return {
103+
name: repo.full_name,
104+
message: repo.archived
105+
? `${repo.full_name} ${style.dim('(archived)')}`
106+
: repo.full_name,
107+
};
108+
}),
102109
});
103110
} catch (error) {
104111
return { repos: [] };

0 commit comments

Comments
 (0)