Allow GitHub Check/Context to be Configurable

When integrating with GitHub SonarQube automatically decorate PRs with the check/context name of SonarQube. It would be nice if this was configurable through a property, for example, sonar.pullrequest.context.

Hi,

What’s your use case?

 
Ann

I want to use this pull request resource in Concourse to indicate the check is pending. It always prefixes the check with concourse-ci, so without the ability to customize on the Sonar side, I can’t match them.

Hi,

I’m still fuzzy on the context, but it may help to know that you can set any analysis property named sonar.analysis.[your property name] and it will be passed forward in the analysis context.

 
Ann

Fuzzy context is fine… the point is that it would be helpful in my case to be able to specify the name of that check when it goes to GitHub. Literally everything is already customizable via sonar.* properties, it seems reasonable that the name of this check/context posted to GitHub also be, via something like sonar.pullrequest.context. Is this something that can be considered for a new feature?

Hi,

It’s not on the list right now. Perhaps instead you can simply use sonar.analysis.pullrequest.context?

 
Ann

The problem isn’t the ability to pass a value, rather the value. If I specify sonar.analysis.pullrequest.context it will not change the name passed to GitHub since that is handled by Sonar itself. It will need to be configured to look for that value.

To be clear, this is the name I’m referring to. SonarQube.

Okay. Thanks for the clarification.

 
Ann

Any plans to incorporate this?

Hi @esauser,

I have hard time understanding the reason and the use case here. Without understanding it correctly, we cannot make the decision to plan it or not.

It seems that you want to integrate SQ analysis in your pipeline, right? How do you want to integrate it and in which case exactly?

Thanks,
Cheers,