bridge.pipelines.bt2gh_for_pr_issues.main module#

Implements the bio.tools→GitHub PR pipeline: given a checkout path and a BiotoolsToolModel, produce file changes to propose in a pull request.

class bridge.pipelines.bt2gh_for_pr_issues.main.BiotoolsToGitHubForPRPipelineArgs(**data)[source]#

Bases: PipelineArgs

Pipeline argument model for the bio.tools to GitHub for PR pipeline.

Parameters:
  • repo_path (str) – Path to the cloned GitHub repository to make changes in.

  • metadata_model (BiotoolsToolModel) – The source bio.tools metadata model.

  • existing_repo_model (GitHubRepoModel)

existing_repo_model: GitHubRepoModel#
metadata_model: ToolModel#
repo_path: str#
async bridge.pipelines.bt2gh_for_pr_issues.main.run(args)[source]#

Run the pipeline to generate repository file changes based on bio.tools metadata.

Parameters:

args (BiotoolsToGitHubForPRPipelineArgs) – The pipeline arguments containing a path to the cloned GitHub repository and metadata model.

Returns:

A dictionary mapping file paths to their new content, and a dictionary mapping issue titles to their bodies.

Return type:

tuple[dict, dict]