Global variables
Global variables
Piper will automatically add Workflow scope parameters that can be referenced from any template. The parameters taken from webhook metadata, and will be populated respectively to GitProvider and event that triggered the workflow.
-
{{ workflow.parameters.event }}
the event that triggered the workflow. -
{{ workflow.parameters.action }}
the action that triggered the workflow. -
{{ workflow.parameters.dest_branch }}
the destination branch for pull request. -
{{ workflow.parameters.commit }}
the commit that triggered the workflow. -
{{ workflow.parameters.repo }}
repository name that triggered the workflow. -
{{ workflow.parameters.user }}
the username that triggered the workflow. -
{{ workflow.parameters.user_email }}
the user's email that triggered the workflow. -
{{ workflow.parameters.pull_request_url }}
the url of the pull request that triggered the workflow. -
{{workflow.parameters.pull_request_title }}
the tile of the pull request that triggered the workflow. -
{{workflow.parameters.pull_request_labels }}
comma seperated labels of the pull request that triggered the workflow.