mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-05-06 11:39:38 +00:00
4776082c34
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
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}
|