فهرست منبع

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