浏览代码

bin/darkirc: [commitbot] replace pusher name with committer's

dasman 2 年之前
父节点
当前提交
0567c219bd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bin/darkirc/script/bots/commitbot.py

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

@@ -81,7 +81,7 @@ def get_branch_name_from_push_event(data):
     return data['ref'].split('/')[-1]
 
 def handle_forward_push(irc, data):
-    author = data['pusher']['name']
+    author = data['commits'][0]['author']['name']
 
     num_commits = len(data['commits'])
     num_commits = str(num_commits) + " commit" + ('s' if num_commits > 1 else '')