# Skipping based on regex of changed paths

**URL:** <https://forum.buildkite.community/t/skipping-based-on-regex-of-changed-paths/638>\
**Category:** Features Requests\
**Created:** [August 3, 2019, 7:59am UTC](https://forum.buildkite.community/t/skipping-based-on-regex-of-changed-paths/638 "2019-08-03T07:59:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul\_h](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@paul\_h](https://forum.buildkite.community/u/paul_h)\
**Post date:** [August 3, 2019, 7:59am UTC](https://forum.buildkite.community/t/skipping-based-on-regex-of-changed-paths/638/1 "2019-08-03T07:59:35Z")

</div>

It’d be great if builds could be skipped if nothing changed in the repo for a given path.

Say a monorepo team has backend and frontend in the same repo, and had three builds for the same repo - backend, frontend, and integration test of backend and frontend together. It could be that the regex masks like backend/.\* (or globbing equiv) would act towards skipping builds where the changes/diffs were wholly outside the paths matching to the regex

---

<div class="post-metadata">

**Author:** ![jess](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/jess/32/24_2.png) [@jess](https://forum.buildkite.community/u/jess)\
**Post date:** [August 7, 2019, 12:09am UTC](https://forum.buildkite.community/t/skipping-based-on-regex-of-changed-paths/638/2 "2019-08-07T00:09:55Z")

</div>

Hi @paul_h, we’ve seen people in similar situations have a lot of good things to say about the [Monorepo Diff plugin](https://github.com/chronotc/monorepo-diff-buildkite-plugin). It lets you trigger only builds for those paths which are changed in a pretty simple, declarative manner!

---

<div class="post-metadata">

**Author:** ![paul\_h](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@paul\_h](https://forum.buildkite.community/u/paul_h)\
**Post date:** [August 14, 2019, 12:08pm UTC](https://forum.buildkite.community/t/skipping-based-on-regex-of-changed-paths/638/3 "2019-08-14T12:08:28Z")

</div>

Thanks for the link. I’m experimenting with it, but also raising issues (for README clarity) - issues/18 & issues/19 & issues/20 (your forum s/w won’t let me link to those).
