combine new branches with their specific commits

This commit is contained in:
Lephenixnoir 2021-03-11 18:22:01 +01:00
parent 5b39da9714
commit f46af7cfc5
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 4 additions and 1 deletions

5
app.py
View File

@ -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: