Skip to content

Commit

Permalink
Merge pull request #28 from Zethzer/master
Browse files Browse the repository at this point in the history
Fix #27
  • Loading branch information
iamtraction authored Jun 13, 2020
2 parents b4920d5 + ef8506f commit 5c63a3c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions send.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ COMMITTER_NAME="$(git log -1 "$TRAVIS_COMMIT" --pretty="%cN")"
COMMIT_SUBJECT="$(git log -1 "$TRAVIS_COMMIT" --pretty="%s")"
COMMIT_MESSAGE="$(git log -1 "$TRAVIS_COMMIT" --pretty="%b")" | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g'

if [ ${#COMMIT_SUBJECT} -gt 256 ]; then
COMMIT_SUBJECT="$(echo "$COMMIT_SUBJECT" | cut -c 1-253)"
COMMIT_SUBJECT+="..."
fi

if [ -n $COMMIT_MESSAGE ] && [ ${#COMMIT_MESSAGE} -gt 1900 ]; then
COMMIT_MESSAGE="$(echo "$COMMIT_MESSAGE" | cut -c 1-1900)"
COMMIT_MESSAGE+="..."
fi

if [ "$AUTHOR_NAME" == "$COMMITTER_NAME" ]; then
CREDITS="$AUTHOR_NAME authored & committed"
else
Expand Down

0 comments on commit 5c63a3c

Please sign in to comment.