format github_action_runner.py

This commit is contained in:
Kamakura
2024-06-04 11:10:13 +08:00
parent d3a7041f0d
commit b1444eb180

View File

@ -139,8 +139,11 @@ async def run_action():
comment_id = event_payload.get("comment", {}).get("id") comment_id = event_payload.get("comment", {}).get("id")
provider = get_git_provider()(pr_url=url) provider = get_git_provider()(pr_url=url)
if is_pr: if is_pr:
await PRAgent().handle_request(url, body, await PRAgent().handle_request(
notify=lambda: provider.add_eyes_reaction(comment_id, disable_eyes=disable_eyes)) url, body, notify=lambda: provider.add_eyes_reaction(
comment_id, disable_eyes=disable_eyes
)
)
else: else:
await PRAgent().handle_request(url, body) await PRAgent().handle_request(url, body)