diff --git a/app.py b/app.py index ca6ece5..4e8750e 100644 --- a/app.py +++ b/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: