I have the following script that I kind of started to write in one of my projects where I use Travis CI.
after_success: - MESSAGE=$(git log --format=%B -n 1