Gitlab-ci - get all commit messages from push

Hi All,
do you know if it’s possible (and maybe how) to get the commit messages from the push that triggered the pipeline?
I know the variable CI_COMMIT_MESSAGE but this only contains the message from the last commit.
Also if I push 5 commits at once, this variable only contains the last commit message.

Many thanks in advance for any help.

1 Like

I am also thinking about this same question.

I thinks we can get all commits of an MR Merge requests API | GitLab,
then we can get all commit message from these commits, Commits API | GitLab