fix: cli prefix sanitize

This commit is contained in:
Mohamed Marrouchi
2024-10-03 08:20:16 +01:00
parent 6c02022d16
commit cddc53c807
2 changed files with 7 additions and 6 deletions

View File

@@ -205,9 +205,9 @@ program
// Get the last part of the repository name
const repoName = repository.split('/').pop();
// If the repo name starts with "hexabot-channel-", remove that prefix
const extensionName = repoName.startsWith('hexabot-channel-')
? repoName.replace('hexabot-channel-', '')
// If the repo name starts with "hexabot-<TYPE>-", remove that prefix
const extensionName = repoName.startsWith(`hexabot-${type}-`)
? repoName.replace(`hexabot-${type}-`, '')
: repoName;
const extensionPath = path.resolve(