# Filtering based on Github Labels

**URL:** <https://drone.discourse.group/t/filtering-based-on-github-labels/8453>\
**Category:** Drone Support\
**Created:** [September 28, 2018, 6:15am UTC](https://drone.discourse.group/t/filtering-based-on-github-labels/8453 "2018-09-28T06:15:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/aaron/32/5761_2.png) [@aaron](https://drone.discourse.group/u/aaron)\
**Post date:** [September 28, 2018, 6:15am UTC](https://drone.discourse.group/t/filtering-based-on-github-labels/8453/1 "2018-09-28T06:15:31Z")

</div>

Hi, I’m currently using a monorepo with four apps in it.

For pull requests I’m using [autolabeler](https://github.com/probot/autolabeler) to automatically assign labels to pull requests based on what area of the code has been updated, to assign the correct PR reviewer etc.

I think it would be great if we could conditionally run parts of our pipeline based on these labels, for example if I only make code changes in one, don’t run the test suites of the others.

Thoughts on this? Is it feasible/can it already be done?

Cheers,  
Aaron

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [September 28, 2018, 1:10pm UTC](https://drone.discourse.group/t/filtering-based-on-github-labels/8453/2 "2018-09-28T13:10:30Z")

</div>

You can create a plugin for this. We are introducing a new category of plugins called configuration plugins. See my comment here, which includes an overview and a sample plugin: [https://github.com/drone/drone/issues/1021#issuecomment-417819643](https://github.com/drone/drone/issues/1021#issuecomment-417819643)
