I'm trying to notify Trello with the last commits pushed when a push is made (and thus a deployment through the pipeline).
For getting the last commits messages I'm using:
git log --format='- %B' --no-merges HEAD^..HEAD
but it's only getting my last commit, not the total of commits I did for the last push.
Is it possible to get all the commit messages related to the last push?
Hi @javi_micocar,
Would setting clone depth as defined in https://community.atlassian.com/t5/Bitbucket-questions/clone-depth-does-what-Why-do-I-care-about-this-setting/qaq-p/496247 help out with your issue?
Thanks,
Peter
Sorry, I don't see the relation. I ended fixing it comparing between branches instead.
4 branches, Dev, Stage, Release and Master.
Dev compares with Stage,
Stage compares with Release,
and finally Release compares with Master
For instance, comparing Dev with Stage...
LOGS=`git log --format='- %B' --no-merges origin/stage..dev`
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.