Validate repository URLs don't end with .git
This commit is contained in:
@@ -213,6 +213,11 @@ for (const file of changedFiles) {
|
|||||||
if (plugin.repository) {
|
if (plugin.repository) {
|
||||||
try {
|
try {
|
||||||
new URL(plugin.repository);
|
new URL(plugin.repository);
|
||||||
|
|
||||||
|
// Repository URL should not end with .git
|
||||||
|
if (plugin.repository.endsWith('.git')) {
|
||||||
|
errors.push(`❌ ${file}: Repository URL should not end with .git: ${plugin.repository}`);
|
||||||
|
}
|
||||||
} catch {
|
} catch {
|
||||||
errors.push(`❌ ${file}: Invalid repository URL: ${plugin.repository}`);
|
errors.push(`❌ ${file}: Invalid repository URL: ${plugin.repository}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user