This project is WIP (work in progress), a pre-release.
The idea is a SonarQube
plugin that decorates Gitea
's pull reqeusts
with Quality Gate result metrics,
as well as labeling it as passed or failed.
# linux
./mvnw package
# windows
./mvnw.cmd package
This will create the jar
file under the maven
's target
folder.
Place the created jar
file in your SonarQube
plugins folder and restart.
After restarting, the plugin configuration will be added to administration control panel:
TIP:
You can create a designated user in yourGitea
instance and call itSonarQube
.
Generate the token with that user and give it a very strict password (to prevent abuse).
That will make the comments and labels to be pushed by theSonarQube
user and not your own.
If configured, the plugin will check if the project's repository is a Gitea
repository.
If so, it will push the QualityGate
result metrics to the pull request conversation as so:
With further configuration, the plugin will also label the pull request as so:
As stated earlyer, this is a work in progress.
As such, there is tons of work and any contribution will be gladly accepted.
Please check the CONTRIBUTING.md before contributing.
Please check the CODE_OF_CONDUCT.md before opening an issue, a pull request or contributing.