Skip to content

Commit

Permalink
feat: add latest commit message on notify slack
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Boissinot committed Mar 5, 2019
1 parent 0d0c0fa commit a2935e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config/after-code-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- name: get latest commit message
shell: 'git log {{ ansistrano_git_branch }} --pretty="%s" -n1'
args:
chdir: "{{ ansistrano_deploy_to }}/{{ ansistrano_repo_dir }}"
register: latest_commit_message

2 changes: 1 addition & 1 deletion config/steps/slack_notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
token: "{{ lephare_slack_notify_token }}"
channel: "{{ lephare_slack_notify_channel }}"
username: "{{ lephare_slack_notify_username }}"
msg: "Déploiement vers {{ application_environment }} terminé"
msg: "Déploiement vers {{ application_environment }} terminé. {{ latest_commit_message }}"
icon_emoji: ":rocket:"
color: good

0 comments on commit a2935e5

Please sign in to comment.