From f46af7cfc5524bb0f7b794432d3520c6c26d9755 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Thu, 11 Mar 2021 18:22:01 +0100 Subject: [PATCH] combine new branches with their specific commits --- app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: