Skip to content

Commit 4a56f59

Browse files
Update github-trigger-event-options.adoc (#9345)
* Update github-trigger-event-options.adoc * address comments * Update jekyll/_cci2/github-trigger-event-options.adoc Co-authored-by: Rosie Yohannan <[email protected]> --------- Co-authored-by: Rosie Yohannan <[email protected]>
1 parent 3637ab4 commit 4a56f59

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

jekyll/_cci2/github-trigger-event-options.adoc

+9
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ a| * `opened`
9898

9999
|===
100100

101+
All pipelines triggered by link:https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request[pull request events] also have the following xref:variables/#pipeline-values[pipeline values] populated:
102+
103+
* `pipeline.event.github.pull_request.base.ref`: the name of the *base* (or target) branch of the PR - that is the branch that will receive the changes.
104+
* `pipeline.event.github.pull_request.head.ref`: the name of the *head* branch of the PR - that is the branch containing the changes to be merged.
105+
* `pipeline.event.github.pull_request.draft`: a boolean value indicating whether the pull request is a draft.
106+
* `pipeline.event.github.pull_request.title`: the title of the pull request.
107+
* `pipeline.event.github.pull_request.number`: the numeric identifier of the pull request.
108+
109+
These values are extracted directly from the GitHub event payload. The part after prefix `pipeline.event.github.*` matches the corresponding field in the pull request event structure described in link:https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request[the GitHub docs].
101110

102111
Config orchestration tools are available from within your pipelines are as follows:
103112

0 commit comments

Comments
 (0)