From 27a2bec7e9e16eff0ad158f4e6bf6034677d1cda Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Tue, 10 Jan 2017 23:33:48 +0100
Subject: [PATCH] Update update_feedstock.py - use the user id of the person
 who started the build

---
 gitlab/update_feedstock.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gitlab/update_feedstock.py b/gitlab/update_feedstock.py
index 4d456f7..ad70820 100755
--- a/gitlab/update_feedstock.py
+++ b/gitlab/update_feedstock.py
@@ -184,7 +184,10 @@ def main(package, direct_push=False):
                  ['git', 'add', '-A'])
     try:
       run_commands(['git', 'commit', '-am',
-                    'Update to version {}'.format(stable_version)])
+                    'Update to version {}'.format(stable_version),
+                    '--author', '{} <{}>'.format(
+                        os.environ.get('GITLAB_USER_ID'),
+                        os.environ.get('GITLAB_USER_EMAIL'))])
     except ValueError:
       print('Feedstock is already uptodate, skipping.')
       return
-- 
GitLab