Files
AutoMetabuilder/backend/autometabuilder/workflow/plugins/backend_create_github.py
2026-01-10 13:02:34 +00:00

12 lines
372 B
Python

"""Workflow plugin: create GitHub integration."""
from ...github_service import create_github_integration
def run(runtime, _inputs):
"""Initialize GitHub client."""
token = runtime.context.get("github_token")
msgs = runtime.context.get("msgs", {})
gh = create_github_integration(token, msgs)
return {"result": gh, "initialized": gh is not None}