Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

bitbucket-pipelines notify last changes getting the last commits

javi_micocar September 11, 2019

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?

1 answer

0 votes
Peter Plewa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 15, 2019
javi_micocar October 16, 2019

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`

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events