Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to SonarQube on comment. #7

Open
stevehipwell opened this issue Feb 5, 2021 · 5 comments
Open

Link to SonarQube on comment. #7

stevehipwell opened this issue Feb 5, 2021 · 5 comments

Comments

@stevehipwell
Copy link

It would be great if there was a link back to SonarQube from the GitLab comment on the default template.

@xkx
Copy link

xkx commented Feb 6, 2021

We consider to change the template manually. What variable should I use?

@stevehipwell
Copy link
Author

@xkx there is a section at the bottom of the README showing the template language and variables.

@xkx
Copy link

xkx commented Feb 6, 2021

@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.

@stevehipwell
Copy link
Author

@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).

@xkx
Copy link

xkx commented Feb 7, 2021

@stevehipwell I will give it a try. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants