@@ -162,7 +162,10 @@ def github_webhook():
|
||||
ref = json["after"]
|
||||
title = datetime.datetime.utcnow().strftime("%Y-%m-%d") + " " + ref[:5]
|
||||
branch = json["ref"].replace("refs/heads/", "")
|
||||
if branch not in [ "master", "main" ]:
|
||||
if package.update_config and package.update_config.ref:
|
||||
if branch != package.update_config.ref:
|
||||
continue
|
||||
elif branch not in ["master", "main"]:
|
||||
continue
|
||||
|
||||
elif event == "create":
|
||||
|
||||
Reference in New Issue
Block a user