# YAML definitions for Triggers?

**URL:** <https://community.codefresh.io/t/yaml-definitions-for-triggers/531>\
**Category:** Pipeline Workflows\
**Created:** [April 13, 2021, 8:01pm UTC](https://community.codefresh.io/t/yaml-definitions-for-triggers/531 "2021-04-13T20:01:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cblair](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/cblair/32/347_2.png) [@cblair](https://community.codefresh.io/u/cblair)\
**Post date:** [April 13, 2021, 8:01pm UTC](https://community.codefresh.io/t/yaml-definitions-for-triggers/531/1 "2021-04-13T20:01:43Z")

</div>

Hello, I’m trying to define my own triggers in my pipeline YAML. I’m trying to figure out what the spec/defined fields are for the trigger YAML, like the file glob. I found some like pullRequestTargetBranchRegex in other examples. Are there docs or code that I can reference for trigger YAML? Thank you.

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [April 16, 2021, 9:37am UTC](https://community.codefresh.io/t/yaml-definitions-for-triggers/531/2 "2021-04-16T09:37:33Z")

</div>

Hello and welcome to the Codefresh community.

Triggers are part of the full YAML specification available only via the CLI. Here are the details [Codefresh API · Codefresh | Docs](https://codefresh.io/docs/docs/integrations/codefresh-api/#git-triggers)

Let us know if you have other questions.
