Hi, @seiyria. For monorepos, our build in method for testing when to build is the setting
build.ignore. Here is an example from a netlify.toml file:
ignore = "git diff --quiet HEAD^ HEAD sub_dir/"
The build ignore command works be checking the exit code of the command run. In the
git diff command above, the exit code will be non-zero if there has been a change somewhere in that subdirectory (
sub_dir/) between the most recent commit and its parent commit.
I point out the “non-zero” because, in most cases, a non-zero exit code means an error and, in most cases, a process will stop on a non-zero exit.
build.ignore, the non-zero means there is a difference which is what we testing for and we only want to build if that difference exist. So, the
build.ignore continues on a non-zero exit - instead of stopping. (This is just something to keep in mind when writing custom
Regarding limiting to X builds a day, there is no such option at this time.
If there are other questions about this, please let us know.