autobot: maj hash commit si réussite

This commit is contained in:
nyanloutre 2018-10-23 22:27:38 +02:00
parent e4efab9f1b
commit b47269a083
1 changed files with 2 additions and 0 deletions

View File

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