7 Commits
Author SHA1 Message Date
frdel a7cf2356a4 Rename plugin.yaml to index.yaml across repository
Rename all plugin metadata files from `plugin.yaml` to `index.yaml`. Update README documentation, validation scripts, and plugin resolution logic to reference the new filename. Remote repositories must still contain `plugin.yaml` at their root.
2026-03-10 21:28:15 +01:00
frdel 199ac38386 Allow reserved plugin names in PLUGIN_NAMES env var
Add allow_reserved parameter to _normalize_plugin_names (defaults to False) and pass allow_reserved=True when processing PLUGIN_NAMES environment variable. Update skip message to reflect whether reserved names are allowed. Check is_reserved_plugin_dirname in _plugin_exists and return False for reserved names so they are treated as non-existent plugins.
2026-03-10 09:26:51 +01:00
frdel ee14fbd022 Add reserved plugin-dirname helper
Introduce is_reserved_plugin_dirname to centralize the check for underscore-prefixed (reserved) plugin directory names. Replace direct startswith("_") checks with the helper in plugin_resolution.py and import/use it in find_orphan_plugin_names.py so underscore-prefixed dirs are ignored (treated as non-plugins) during normalization and existence checks.
2026-03-10 09:19:29 +01:00
frdel 48f273dded Skip _-prefixed plugins; detect duplicate repos
Treat plugin directories that start with an underscore as reserved and exclude them from normalized plugin lists; update the skip message accordingly. Add INDEX_JSON_PATH and implement URL normalization and a validation routine that reads index.json and fails if the submitted GitHub repository is already registered for a different plugin (comparing normalized owner/repo in lowercase). Wire this check into the plugin submission validation flow and report parse/format errors for index.json.
2026-03-09 19:12:06 +01:00
Jan Tomášek 44512bd2d8 Move screenshot validation to plugin.yaml URLs 2026-03-08 18:55:47 +01:00
frdel c855ad7c91 Treat START_FROM as plugin index (default 0)
Change START_FROM handling to be an index rather than a plugin name. Update three workflow files (.github/workflows/generate-all.yml, generate-plugin-discussions.yml, generate-plugin-index.yml) to set the start_from input default to "0", update its description to reference an index, and pass a '0' fallback into job inputs/env instead of an empty string. Update scripts/plugin_resolution.py to parse START_FROM as an integer index, slice the plugin list from that index (only if >0), and warn on non-integer values. This makes start-position handling position-based and provides a sensible default.
2026-03-05 12:43:03 +01:00
frdel a60e9b46be Split workflows and add plugin resolution
Refactor CI/workflow and plugin detection logic: extract generate-index and generate-discussions into reusable workflow files and update generate-all and generate-post-commit to call them; increase default MAX_PLUGINS to 1000 and add start_from and plugin_names inputs. Introduce scripts/plugin_resolution.py to centralize detection of affected plugin names (get_plugin_names, PLUGINS_DIR, REPO_ROOT, DEFAULT_MAX_PLUGINS) and remove the old generate_post_commit.py script. Update scripts/generate_index.py and scripts/update_plugin_discussions.py to use the new resolution module and adapt error handling and request logic accordingly.
2026-03-05 12:15:24 +01:00