# Commit message trigger firing on commit\_messages

**URL:** <https://discuss.bitrise.io/t/commit-message-trigger-firing-on-commit-messages/25170>\
**Category:** Builds\
**Created:** [April 23, 2025, 6:41am UTC](https://discuss.bitrise.io/t/commit-message-trigger-firing-on-commit-messages/25170 "2025-04-23T06:41:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesw](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jamesw](https://discuss.bitrise.io/u/jamesw)\
**Post date:** [April 23, 2025, 6:41am UTC](https://discuss.bitrise.io/t/commit-message-trigger-firing-on-commit-messages/25170/1 "2025-04-23T06:41:00Z")

</div>

I have just had a build triggered that I don’t think should have run when a commit was pushed to a GitHub PR.

I’ve checked that there are no triggers for the specific workflow in Bitrise. There is a project-based legacy push trigger with a commit message regex, but the regex that doesn’t match the commit message.

I took a look at the build parameters and saw this:

```auto
{

    "commit_hash": "b3b3c09673a36e114bc597134ba7b8d898401614",
    "commit_message": "Address PR comments. Refactoring.",
    "commit_messages": [
        "feat(profile): user ID display, restore purchases, progress code entry (#22)\n\nCo-authored-by: Olivier Castille <96414603+ocastille@users.noreply.github.com>",
        "build: update version to 1.4.9(3)",
        "feat(lesson): add new word lesson overlay support (#24)",
        "build: update version to 1.4.9(4)",
        "Merge branch 'develop' into new_reward",
        "Address PR comments. Refactoring."
    ],

```

The regex matches a commit message that starts “build: update version…”. Has the trigger looked all the way through `commit_messages` to do the match? I’d only expect it to look in `commit_message`.

If the trigger is looking in `commit_messages` as well as `commit_message`, is there a way to make the trigger only look at `commit_message`? Otherwise I’ll need to make the build trigger from tags.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [May 23, 2025, 6:41am UTC](https://discuss.bitrise.io/t/commit-message-trigger-firing-on-commit-messages/25170/2 "2025-05-23T06:41:14Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
