浏览代码

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("==============================================")