From d98552054aeba8e88bff4e2a12313d446ee39c19 Mon Sep 17 00:00:00 2001 From: Kartik Pradeepan Date: Fri, 16 Jan 2026 09:55:21 -0500 Subject: [PATCH] add skip-pr flag to output metadata path instead of creating a PR --- .../plugin_management/handle_metadata.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/brainscore_core/plugin_management/handle_metadata.py b/brainscore_core/plugin_management/handle_metadata.py index 620fbefc..e9a20ff4 100644 --- a/brainscore_core/plugin_management/handle_metadata.py +++ b/brainscore_core/plugin_management/handle_metadata.py @@ -255,6 +255,8 @@ def main(): help="Domain type (currently only 'vision' is supported)") parser.add_argument("--db-connection", action="store_true", default=False, help="If provided, establish a new database connection") + parser.add_argument("--skip-pr", action="store_true", default=False, + help="If provided, skip PR creation and output metadata path instead") args = parser.parse_args() new_metadata = False @@ -300,9 +302,14 @@ def main(): create_endpoint = MetadataEndpoint(domain_plugins=domain_plugin, db_secret=db_secret) create_endpoint(plugin_dir=args.plugin_dir, plugin_type=args.plugin_type, domain=args.domain) - if new_metadata: # if metadata was created, create a pr that will be automerged and approved by github actions - pr_number = create_metadata_pr(args.plugin_dir) - print(pr_number) + if new_metadata: + if args.skip_pr: + # Output the metadata path for the workflow to collect + print(metadata_path) + else: + # Create a PR that will be automerged and approved by github actions + pr_number = create_metadata_pr(args.plugin_dir) + print(pr_number) else: print("")