No, you're misunderstanding what I'm saying - they want to trigger a build on all pushes, but just not build the whole repo each time, that's not the same as what you've shared - your trigger wouldn't start any builds if someone just pushed a backend change. They want
Someone pushed backend change. Trigger backend bit of the repo to build and then run tests
Someone pushed a frontend change. Trigger entire build and run tests
The trigger above alone isn't going to do that, but I guess it would allow you to construct a more complex set of pipelines out of it.
But in general for monorepos the built-in functionality of github and other tools seems lacking to me, that's why all the more complex stuff like bazel exists.
I understand the trigger alone doesn't do exactly that, but it was a simplified example.As you said, it's just a building block; I'm pretty sure it can be used to have a gate.
View all comments
Show parent comment
4
u/qmunke Oct 13 '26
No, you're misunderstanding what I'm saying - they want to trigger a build on all pushes, but just not build the whole repo each time, that's not the same as what you've shared - your trigger wouldn't start any builds if someone just pushed a backend change. They want
The trigger above alone isn't going to do that, but I guess it would allow you to construct a more complex set of pipelines out of it.
But in general for monorepos the built-in functionality of github and other tools seems lacking to me, that's why all the more complex stuff like bazel exists.