From c9500cf7964693823468939a2a7769de710c58da Mon Sep 17 00:00:00 2001 From: Hi120ki <12624257+hi120ki@users.noreply.github.com> Date: Thu, 13 Feb 2025 12:03:30 +0900 Subject: [PATCH] Add : pull_request_target event on GitHub Actions integration Signed-off-by: Hi120ki <12624257+hi120ki@users.noreply.github.com> --- pr_agent/servers/github_action_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/servers/github_action_runner.py b/pr_agent/servers/github_action_runner.py index c9d23456..bcb5effa 100644 --- a/pr_agent/servers/github_action_runner.py +++ b/pr_agent/servers/github_action_runner.py @@ -81,7 +81,7 @@ async def run_action(): get_logger().info(f"github action: failed to apply repo settings: {e}") # Handle pull request opened event - if GITHUB_EVENT_NAME == "pull_request": + if GITHUB_EVENT_NAME == "pull_request" or GITHUB_EVENT_NAME == "pull_request_target": action = event_payload.get("action") # Retrieve the list of actions from the configuration