mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-23 11:55:12 +00:00
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -159,6 +159,10 @@ function getDisplayName(filePath, kind) {
|
||||
} else if (kind === "instruction") {
|
||||
return basename.replace(".instructions.md", "");
|
||||
} else if (kind === "hook") {
|
||||
// For folder-based hooks like hooks/<hook>/README.md, use the folder name.
|
||||
if (basename.toLowerCase() === "readme.md") {
|
||||
return path.basename(path.dirname(filePath));
|
||||
}
|
||||
return basename.replace(".hook.md", "");
|
||||
} else if (kind === "skill") {
|
||||
return path.basename(filePath);
|
||||
|
||||
Reference in New Issue
Block a user