Subscribe to gitlab events VcsChange
Where can I get code examples of youTrack api integration with gitLab subscribe to an event like commit and get the commit text? Do you have VcsChange code examples https://www.jetbrains.com/help/youtrack/devportal/v1-VcsChange.html?
How can I get, for example, a gitLab commit commit using VcsChange?
Please sign in to leave a comment.
Hi!
I'm Sergey from the YouTrack team.
VcsChanges are stored in a set, so to access them, you need to use set's properties and methods. For example,
ctx.issue.vcsChanges.forEach(change => console.log(change.text));
will log all the commit messages in an issue.If any questions appear, please let me know.