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:
{
"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.