mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-04-24 22:04:58 +00:00
12 lines
372 B
Python
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}
|