Add username prefix requirement for plugin filenames

This commit is contained in:
2026-04-17 02:57:51 +10:00
parent c99a10e1c2
commit fc4c5fb1d1
3 changed files with 171 additions and 10 deletions

View File

@@ -154,6 +154,12 @@ for (const file of changedFiles) {
const pluginId = file.replace('plugins/', '').replace('.json', '');
// Filename must be prefixed with username
if (!pluginId.startsWith(`${prAuthor}-`)) {
errors.push(`${file}: Filename must start with your username "${prAuthor}-" (e.g., "${prAuthor}-my-plugin.json")`);
continue;
}
// Check if file was added or removed
let isAdded = false;
let isRemoved = false;