prTrigger
prTrigger(
input:WithMeta<PRTriggerInput>):PRTriggerModel
Create a pull request trigger model for the on.pull_request or
on.pull_request_target configuration.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
PR trigger filter properties and optional model metadata. |
Returns
Section titled “Returns”PRTriggerModel
A PRTriggerModel for use in an OnInput.
Example
Section titled “Example”prTrigger({ branches: ["main"], types: ["opened", "synchronize"],})