RTC Gitlab integration - only by node.js hooks or also by webhooks

Hi all,
in our project we would like to link git pushes with RTC workitems.
So we went through the documentation in here:
https://www.ibm.com/support/knowledgecenter/en/SSYMRC_6.0.2/com.ibm.team.connector.cq.doc/topics/t_git_lab_integ.html
Now a colleague of mine has a different understanding from the documentation
I think we need to hook in the node.js scripts into our Gitlab server, while he considers that it should work via Gitlabs WebHooks and that the RTC server would interpret everything from the push commit.
So my main question is:
Is it required on Gitlab CE edition to use the hook scripts provided by IBM via download?
I had to admit that reading the GitHub integration documentation that there might be also a solution that works without scripts on the git server side and just by a webhook using the com.ibm.team.git.common.internal.IGitHubInvokeService on the Payload URL.
One answer

Hi,
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/411540
Comments

Hi, thanx for your fast answer.
My colleague has an additional question towards it but on posting he gets an error message. So I am posting on behalf:
“Thanks for the response. Requesting some more clarification the git integration package offered by IBM. It offers a sample hook and a node.js scripts to use for a plain GIT scenario. Which of the package contents are applicable for the GITLAB scenario?

Hi,

Hi Karthik,
we do use the Git Server toolkit 6.0.2 and on gitlab we do use the Gitlab Community Edition 8.13.3.
The toolkit zip contains a lot more in folder 'server' e.g. Utils.
So what all do we need? Clear the pre-receive and post-receive files from examples.
But these will call UpdateWorkItemCommitLinks.js - correct?
And this will use some more?

2.Copy the pre-receive and post-receive hook files from toolkit (<toolkit>\server\hooks\examples\gitlab) to custom_hooks directory of your Gitlab repository and provide executable permissions.

Related to point 3:
RTC_GIT_SERVER_TOOLKIT_PATH.
This is the location on the git server where it is expected that the entire toolkit zip is extracted?
We wanted to know which parts we need? Or do we need everything?

Yes, you need to point it to the location where you extracted the zip.