From 34edc10d2fdf38392418e2225cf531185f1a9e5c Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Tue, 1 Sep 2020 14:40:37 +0200 Subject: [PATCH] Fix slack and document it. --- README.md | 2 +- templates/travis.yml.j2 | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b44c1a4..aaa969d 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ This file contains a secret unique to you; te slack encryption token. You have t ```yaml --- -slack_token: "YOUR_SLACK_USERNAME:YOUR_SLACK_TOKEN#CHANNEL" +slack_token: "YOUR_SLACK_USERNAME:YOUR_SLACK_TOKEN" ``` See [Travis documentation](https://docs.travis-ci.com/user/notifications/#configuring-slack-notifications). diff --git a/templates/travis.yml.j2 b/templates/travis.yml.j2 index aa4c7e9..f10b564 100644 --- a/templates/travis.yml.j2 +++ b/templates/travis.yml.j2 @@ -40,6 +40,7 @@ script: notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ slack: - secure: {{ travis.notifications.slack.secure }} - on_success: change + secure: "{{ travis.notifications.slack.secure }}" + on_success: change + template: "%{result}: %{repository_slug}@%{branch}, build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>)" email: false