Skip to content

Commit

Permalink
github-bot: config git author name and email
Browse files Browse the repository at this point in the history
Needed for the attempt-backport functionality of the bot since it does
some git actions requiring author name and email, such as `git am`.

Refs: #561
PR-URL: #567
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
  • Loading branch information
phillipj authored Dec 14, 2016
1 parent 3bc0928 commit 857f590
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions setup/github-bot/ansible-playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,19 @@
become_user: "{{ server_user }}"
git: repo=https://github.com/nodejs/node.git dest="/home/{{ server_user }}/repos/node"
tags: runtime-dependencies

- name: Runtime dependencies | Config node repo author email
become: yes
become_user: "{{ server_user }}"
shell: git config user.email "github-bot@nodejs.org"
args:
chdir: "/home/{{ server_user }}/repos/node"
tags: runtime-dependencies

- name: Runtime dependencies | Config node repo author name
become: yes
become_user: "{{ server_user }}"
shell: git config user.name "nodejs-github-bot"
args:
chdir: "/home/{{ server_user }}/repos/node"
tags: runtime-dependencies

0 comments on commit 857f590

Please sign in to comment.