Skip to content

Commit

Permalink
Trim commit message to first line only
Browse files Browse the repository at this point in the history
  • Loading branch information
divadsn authored Feb 1, 2019
1 parent 7e6852b commit 8b9789b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ fi
# Put local copy of last commit in working directory
echo $DRONE_PREV_COMMIT_SHA > .last_commit

# Trim changelog to first line
DRONE_COMMIT_MESSAGE="$(echo "${DRONE_COMMIT_MESSAGE}" | head -1)"

# Set commit range for git log, from previous commit to latest
GIT_COMMIT_RANGE="$DRONE_PREV_COMMIT_SHA..$DRONE_COMMIT_SHA"
GIT_COMMIT_LOG="$(git log --format='%s (by %an)' $GIT_COMMIT_RANGE)"
Expand Down

0 comments on commit 8b9789b

Please sign in to comment.