Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Mono repo scorecard

Abdullah Ahmad May 27, 2025

Hey guys,

 

I have a mono repo, lets say it's called Application.

Within the mono repo (it's salesforce based, so basically a repo is just all the code/metadata in one repo) we have different metadata. This can include the custom classes, lightning web components (think react components), pages, layouts, profiles, objects (think tables in a database) etc.

However each metadata is part of a different module e.g. Application Module Invoices.

So the main compass component can check PR time, deployments etc easily because it's for the whole repo. But how do I track deployments or PR's related to a specific module? Do I have to curl a request each time using my pipeline when I deploy using maybe like commit message syntax e.g. "Feat(invoice): deployed new pdf changes compass: invoice" and parse it to then send a curl request saying a commit has been made or something to compass?image.pngimage.png

as you can see deployments are not matching, because deployments are tracked at the main compass component level, not the module attached to the mono repo.

1 answer

1 vote
Enrique Serrano Valle
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 28, 2025

Hi, @Abdullah Ahmad !

The approach that you outline is correct: Compass can have a component associated with the monorepo itself and track all activity for that repository automatically.

For each contained module, there's a monorepo setting that can be enabled and that would prevent the stats from the full monorepo to be reflected on the individual module.

monorepo.png

This then makes it possible to send targeted events from the related CI/CD job for that individual module, as you mentioned, using the Compass API, and wiring it to the related pipeline (example). Using config-as-code can also help you structuring a similar setup.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events