mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: cli prefix sanitize
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user