GitHub pull request decorations for monorepos

Hello,

We have a monorepo with 2 projects at the root of the repository:

  • api
  • webapp

api use Maven/Java/sonar
webapp use npm/typescript/sonar

We setup pull request decorations using sonarcloud.io Circleci and GitHub

Since we can have 2 separate analysis in the same pull-request containing change into api and webapp, how to have 2 distincts decoration in GitHub checks on the pull request, one for the api, another for the webapp?

Hi,

I think your use case is practically the same as in this other thread: SonarCloud Pull Request integration with multiple builds

The short answer is that either you must reorganize your setup to analyze both projects in a single analysis, or create two separate SonarQube projects.

I’m closing this topic as a duplicate, please follow the discussion in the other thread.

Cheers,
Janos