diff --git a/create-pull-request.py b/create-pull-request.py index 3e0338d..c5756de 100755 --- a/create-pull-request.py +++ b/create-pull-request.py @@ -24,6 +24,10 @@ def ignore_event(github_event): if deleted == "True": print("Ignoring delete branch event.") return True + ref = "{ref}".format(**github_event) + if not ref.startswith('refs/heads/'): + print("Ignoring events for tags and remotes.") + return True return False