bridge.adapters.api.routers.biotools_to_github module#
Endpoint to create a GitHub pull request from a bio.tools record.
- class bridge.adapters.api.routers.biotools_to_github.BioToolsToGitHubPayload(**data)[source]#
Bases:
BaseModelPayload for creating a GitHub PR from bio.tools metadata.
- Parameters:
biotools_id (str) – The ID of the source bio.tools entry.
owner (str) – The owner of the GitHub repository to create the PR in.
repo (str) – The name of the GitHub repository to create the PR in.
allow_issues (bool | None) – Whether to create issues in the repository based on bio.tools issues. Default is None.
-
allow_issues:
bool|None#
-
biotools_id:
str#
-
owner:
str#
-
repo:
str#
- async bridge.adapters.api.routers.biotools_to_github.biotools_to_github_pr_issues(payload)[source]#
Create a GitHub PR from bio.tools metadata.
- Parameters:
payload (BioToolsToGitHubPayload) – The payload containing bio.tools ID and GitHub repo details.
- Returns:
The response containing PR details.
- Return type:
JSONResponse