combine new branches with their specific commits
This commit is contained in:
parent
5b39da9714
commit
f46af7cfc5
5
app.py
5
app.py
|
@ -40,7 +40,7 @@ def main():
|
|||
branch = data["ref"][11:]
|
||||
url_branch = data["repository"]["html_url"] + f"/src/branch/{branch}"
|
||||
url_branch = f"[url={url_branch}]{branch}[/url]"
|
||||
msg = f"{url_user} a créé une nouvelle branche {url_branch} dans {url_repository}"
|
||||
msg = f"{url_user} a créé une nouvelle branche {url_branch} dans {url_repository} : {message}{others}"
|
||||
# Pre-existing branch
|
||||
else:
|
||||
url_commits = f"[url={data['compare_url']}]{commit_count}[/url]"
|
||||
|
@ -80,6 +80,9 @@ def main():
|
|||
if event == "pull_request" and data["action"] == "assigned":
|
||||
return "IGN"
|
||||
|
||||
if event == "create" and data["ref_type"] == "branch":
|
||||
return "IGN"
|
||||
|
||||
if not msg:
|
||||
msg = f"Événement {event}"
|
||||
if "repository" in data:
|
||||
|
|
Loading…
Reference in New Issue