Dear SCM Community,
We are currently trying to setup a global webhook for a Discord bot with the newest version of the SCM Manager and the webhook plugin. For this it would be great to retrieve the repositories name and namespace with every commit to create a hyperlink that links to the specific commit in scm.
The old documentation of the plugin mentioned that one can use placeholders such as this ${repository.name}
to create a dynamic url, which is great and still seems to work with the new version.
The old docs also state that any method starting with “get” within the java class of Repository would also be available with the placeholder pattern. I tried this with several fields and it seems to work except for retrieving anything related to the namespace of a repository. Is this a bug? Is there any other way to retrieve the repository namespace?
Our namespaces are user based:
/scm/repo/<user as namespace>/<repo name>/code/sources/
May this be the reason that the namespace is always empty?