We want use a pull request's commit message


We wanna use a pull request’s commit message on step as environment variable.

Is there a way to do this?


Hi @standwally,

The $BITRISE_GIT_MESSAGE is the one you’re looking for (https://devcenter.bitrise.io/faq/available-environment-variables/#exposed-by-bitriseio)! :wink:

Indeed the name of the env var is less than perfect, mainly due to historical reasons, but this is the message which is presented on the web UI as the “Commit message”, which is in case of a PR is the PR’s message, not the commit’s.

If you’d have any questions just let us know! :slight_smile:

1 Like

This topic was automatically closed after 13 days. New replies are no longer allowed.