bridge.pipelines.bt2gh_for_pr_issues.map_funcs.name module

Contents

bridge.pipelines.bt2gh_for_pr_issues.map_funcs.name module#

Map repository name from bio.tools to GitHub.

This module compares the bio.tools name and ID with the GitHub repository name. If the GitHub name does not match either, it proposes an issue suggesting to update the repository name to the bio.tools ID. It applies a bio.tools-over-GitHub issue policy.

async bridge.pipelines.bt2gh_for_pr_issues.map_funcs.name.map_name(gh_name, bt_params)[source]#

Propose a GitHub issue to update the GitHub repository name based on bio.tools name and ID metadata, using the generic bio.tools-over-GitHub issue policy.

Parameters:
  • gh_name (str | None) – GitHub repository name.

  • bt_params (dict[str, str | None] | None) – A dictionary containing existing bio.tools metadata parameters. Expected keys: - "name" : bio.tools name - "biotoolsID" : bio.tools ID

Returns:

A mapping with the issue title as key and the issue body as value, or None if no issue is to be created.

Return type:

dict[str, str] | None