<commit_before>#!/bin/bash

curl -g -X POST --data-urlencode 'payload={"channel": "#marketplace", "username": "releasebot", "text": "A new frontend went live! '"$CIRCLE_REPOSITORY_URL"'/releases/tag/'"$CIRCLE_TAG"'", "icon_emoji": ":lightning:"}' "$SLACK_WEBHOOK_URL"<commit_msg>Add commit messages to slack notification of new release (#305)<commit_after>#!/bin/bash
LASTTAG=$(git describe --abbrev=0 --tags HEAD~1)
GITLOG=$(git log --format="%cd %s" --date=short $LASTTAG...HEAD | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/\\n/g')
PAYLOAD='{"channel": "#marketplace", "icon_emoji": ":lightning:","username": "releasebot",
 "attachments": [ { "fallback": "A new frontend went live!",
 "pretext": "A new frontend went live! '"$CIRCLE_REPOSITORY_URL"'/releases/tag/'"$CIRCLE_TAG"'",
 "text": "'"$GITLOG"'" }] }'

#echo $PAYLOAD
curl -g -X POST --data-urlencode "payload=$PAYLOAD" "$SLACK_WEBHOOK_URL"
{'fraction_non_alphanumeric': 0.22793296089385476, 'fraction_numerical': 0.00558659217877095, 'mean_word_length': 5.892307692307693, 'pattern_counts': {'":': 13, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3786563', 'n_tokens_mistral': 363, 'n_tokens_neox': 339, 'n_words': 79}