Extract webhook payload in gitlab CI


#1

Is there anyway for gitlab CI to read the payload from a github webhook?
I would like to extract data from the payload to know which branch change has been made to. or when a PR is raised, to which branch the request is to be merged into. i am using GitLab Enterprise Edition [11.5.0-ee]

Thanks