From b47269a083e7bfdf017eb51201e14f66bbfd7d24 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 23 Oct 2018 22:27:38 +0200 Subject: [PATCH] =?UTF-8?q?autobot:=20maj=20hash=20commit=20si=20r=C3=A9us?= =?UTF-8?q?site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/pr-autobot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/pr-autobot.py b/services/pr-autobot.py index 26c313ced..ffad1b11a 100755 --- a/services/pr-autobot.py +++ b/services/pr-autobot.py @@ -63,5 +63,7 @@ if latest_commit != previous_commit: print("Pull request numéro " + pr.id + " créée") print("URL : " + pr.html_url) print("État : " + ((Fore.GREEN + "Fusionnable") if pr.mergeable else (Fore.RED + "Conflit")) + Style.RESET_ALL) + + open(args['cache_dir'] + '/git-revision', 'w').write(latest_commit) else: print(Fore.GREEN + "Aucun changement détecté" + Style.RESET_ALL)