Open stevehipwell opened 3 years ago
We consider to change the template manually. What variable should I use?
@xkx there is a section at the bottom of the README showing the template language and variables.
@stevehipwell Thank you for your reply. I have read the document but didn't find it...(searched for 'url', 'link' and something else)
I want to get the exact url for certain issue, for example http://sonarqube.somesite.com/issues?id=proj&issues=123 or the exact url for the code http://sonarqube.somesite.com/code?id=proj&path=file_path
It's useful. Especialy when we are facing some duplicated code blocks.
'sonarUrl'? It's url of the global SonarQube site, I think. Maybe I can join this URL and 'Issue.key'/'Issue.src' to get the right url? I need to have a try but not yet do that, so probably I'm totally wrong.
@xkx that's our thinking if we can't get a PR to add it by default. It looks like the templating language has a way to URL encoded (my colleague did the work on this so I'm just going from memory).
@stevehipwell I will give it a try. Thank you very much.
It would be great if there was a link back to SonarQube from the GitLab comment on the default template.