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)