Skip to content

Commit 045ccaa

Browse files
committed
Ignore events for tags and remotes
1 parent a26e9f2 commit 045ccaa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

create-pull-request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ def ignore_event(github_event):
2424
if deleted == "True":
2525
print("Ignoring delete branch event.")
2626
return True
27+
ref = "{ref}".format(**github_event)
28+
if not ref.startswith('refs/heads/'):
29+
print("Ignoring events for tags and remotes.")
30+
return True
2731
return False
2832

2933

0 commit comments

Comments
 (0)