# Drone jsonnet with plugin triggers

**URL:** <https://drone.discourse.group/t/drone-jsonnet-with-plugin-triggers/8039>\
**Category:** Drone Support\
**Created:** [March 2, 2020, 9:49am UTC](https://drone.discourse.group/t/drone-jsonnet-with-plugin-triggers/8039 "2020-03-02T09:49:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmurfy](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/schmurfy/32/6158_2.png) [@schmurfy](https://drone.discourse.group/u/schmurfy)\
**Post date:** [March 2, 2020, 9:49am UTC](https://drone.discourse.group/t/drone-jsonnet-with-plugin-triggers/8039/1 "2020-03-02T09:49:11Z")

</div>

Hello, we are using drone with the [https://github.com/microadam/drone-config-changeset-conditional](https://github.com/microadam/drone-config-changeset-conditional) plugin, I wanted to convert our config to jsonnet to improve readability but for now I want to start slow by using the jsonnet file to generate the yaml file.  
My issue is that the conversion process drops any unknown keys and I found no way to tell it that `changeset` is a valid trigger so it does not drop it.

Is there any way to do that ?

---

<div class="post-metadata">

**Author:** ![quantonganh](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/quantonganh/32/5446_2.png) [@quantonganh](https://drone.discourse.group/u/quantonganh)\
**Post date:** [July 1, 2020, 5:25am UTC](https://drone.discourse.group/t/drone-jsonnet-with-plugin-triggers/8039/2 "2020-07-01T05:25:21Z")

</div>

In my case, we are using: [https://github.com/meltwater/drone-convert-pathschanged](https://github.com/meltwater/drone-convert-pathschanged)

and `drone jsonnet --stream` auto remove `include` in `when:paths` condition.

The reason is: [https://github.com/drone/drone-yaml/blob/master/yaml/pretty/pipeline.go#L161](https://github.com/drone/drone-yaml/blob/master/yaml/pretty/pipeline.go#L161)

I guess you have to add `changeset` here: [https://github.com/drone/drone-yaml/blob/master/yaml/pretty/pipeline.go#L122](https://github.com/drone/drone-yaml/blob/master/yaml/pretty/pipeline.go#L122)

to make it to be considered as a valid condition.
