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

[GitHub] Make pull request status check name configurable #415

Open
alexbde opened this issue Aug 17, 2021 · 3 comments
Open

[GitHub] Make pull request status check name configurable #415

alexbde opened this issue Aug 17, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@alexbde
Copy link

alexbde commented Aug 17, 2021

Hi!

Following idea for an enhancement: it would be great if the name of the status check on a pull request would be configurable. At the moment it is hard-coded to <project-name> Sonarqube Results, see the source code.

Which leads to a status check like this (where sonarqube-test is the project name):

image

This makes it hard to apply global policies for required status checks in GitHub, because the name differs per project. As an example: there is a global policy we apply to all GitHub repositories that a status check called "Jenkins" is required to pass before a PR could be merged. That is no problem, because the status check is called "Jenkins" for every repository.

If I would like to do the same for SonarQube, I would need to adjust the name of the status check in every repository, e.g.:

image

If I could support by testing a new plugin version or similar, I would be happy to do so.

@mc1arke mc1arke added the enhancement New feature or request label Aug 17, 2021
@Tsuesun
Copy link

Tsuesun commented Sep 1, 2021

@alexbde We faced the same problem, if you can't wait you can do what we did and forked the plugin and changed the status check name. If you don't want to do that you can use the github api to set the custom sonarqube status check for every repo.

@balusarakesh
Copy link

we are also facing the same issue and this problem started happening after upgrading sonarqube from 7.X to 8.X, before that we had a universal name for all checks...after the upgrade the check name changed with project name as prefix

@gjabouley-invn
Copy link

Hi, for information in the "Developer" edition (paid), GitHub status check has a fixed name SonarQube Code Analysis
Maybe could be relevant to align to this behavior...

image

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

No branches or pull requests

5 participants