From a18e74fe19bcec0d185f9e65403aa621cbe659e9 Mon Sep 17 00:00:00 2001 From: Tim Harrison Date: Wed, 12 Jul 2023 09:13:03 +0100 Subject: [PATCH] feat: Allowing run on pull_request_target --- .gitignore | 1 + neo/neo.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0c232bb..434fa0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ __pycache__ .vscode/* +.idea/* diff --git a/neo/neo.py b/neo/neo.py index f6828a8..2bd25d3 100755 --- a/neo/neo.py +++ b/neo/neo.py @@ -157,7 +157,7 @@ def github_webhook_ref(dest: str, option_strings: list): if github_event_path: with open(github_event_path, "r") as fp: github_event = json.load(fp) - if github_event_name == "pull_request": + if github_event_name in ["pull_request", "pull_request_target"]: return argparse.Action( default=github_event["pull_request"]["head"]["sha"] if is_github_head_ref