advertise new repositories, ignore dual tag creation
This commit is contained in:
parent
f46af7cfc5
commit
ebfeddf48c
6
app.py
6
app.py
|
@ -81,6 +81,12 @@ def main():
|
|||
return "IGN"
|
||||
|
||||
if event == "create" and data["ref_type"] == "branch":
|
||||
if data["ref"] not in ["master", "main", "trunk"]:
|
||||
return "IGN"
|
||||
url_user = make_url_user(data['sender'])
|
||||
msg = f"{url_user} a créé un nouveau dépôt {url_repository}"
|
||||
|
||||
if event == "create" and data["ref_type"] == "tag":
|
||||
return "IGN"
|
||||
|
||||
if not msg:
|
||||
|
|
Loading…
Reference in New Issue