mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 10:55:17 +00:00
add pull_request event triggers for github action
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
This commit is contained in:
parent
e4f177908b
commit
67fde2c17e
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ async def run_action():
|
||||||
# Handle pull request event
|
# Handle pull request event
|
||||||
if GITHUB_EVENT_NAME == "pull_request":
|
if GITHUB_EVENT_NAME == "pull_request":
|
||||||
action = event_payload.get("action")
|
action = event_payload.get("action")
|
||||||
if action in ["opened", "reopened"]:
|
if action in ["opened", "reopened", "ready_for_review", "review_requested"]:
|
||||||
pr_url = event_payload.get("pull_request", {}).get("url")
|
pr_url = event_payload.get("pull_request", {}).get("url")
|
||||||
if pr_url:
|
if pr_url:
|
||||||
# legacy - supporting both GITHUB_ACTION and GITHUB_ACTION_CONFIG
|
# legacy - supporting both GITHUB_ACTION and GITHUB_ACTION_CONFIG
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue