Преглед на файлове

darkirc: reverse commitbot's push events order

dasman преди 7 месеца
родител
ревизия
db41ac54f7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      bin/darkirc/script/bots/commitbot.py

+ 1 - 1
bin/darkirc/script/bots/commitbot.py

@@ -89,7 +89,7 @@ def handle_forward_push(irc, data):
     branch = get_branch_name_from_push_event(data)
 
     commits = list(map(fmt_commit, data['commits']))
-    for commit in commits:
+    for commit in reversed(commits):
         print("Push event:")
         print(f"@{author} pushed {num_commits} to {branch}: {commit}")
         print("==============================================")