ADR 0002: One repository per part, in a GitLab sub-group
- Status: accepted
- Date: 2026-11-21
Context and Problem Statement
Section titled “Context and Problem Statement”Pulse has three parts: a front end (Angular), a back end (Spring Boot) and the documentation (Starlight). How do we organize and name their repositories?
Decision Drivers
Section titled “Decision Drivers”- Each part can be built, tested and released on its own
- The same structure works for the next projects (JobRadar, Sinistra)
- A recruiter or a reviewer finds the code easily
- The backlog stays in one place
- Names follow known conventions
Considered Options
Section titled “Considered Options”Organization:
- One repository for all parts (monorepo):
frontend/,backend/,docs/ - One repository per part (polyrepo)
- Hybrid: front end and back end together, documentation apart
Naming of the repositories (for the polyrepo option):
- Layer first:
bff-pulse,ffb-pulse - Product first:
pulse-bff,pulse-web,pulse-docs - GitLab sub-group per product:
pulse/bff,pulse/web,pulse/docs
Decision Outcome
Section titled “Decision Outcome”Chosen option: “one repository per part, in a GitLab sub-group”, because each part gets its own pipeline and release, and the sub-group gives a clear structure that repeats for every product.
heimdall-groupe/└── pulse/ sub-group ├── docs product repository: issues, milestones, board, charter, ADRs, architecture, review ├── bff back end (Spring Boot) └── web front end (Angular)The back end is named bff because it follows the Backend For Frontend
pattern: it serves only the Pulse web application, and it aggregates and
caches the external APIs (GitLab, Bordeaux open data, ISS position) for it.
Consequences
Section titled “Consequences”- Good: each repository has its own pipeline, version and release.
- Good: the same structure for every product; paths are easy to read
(
gitlab.com/heimdall-groupe/pulse/bff). - Good: all issues stay in
pulse/docs. Merge requests inbffandwebreference them, for exampleCloses heimdall-groupe/pulse/docs#12. - Bad: a change of the API touches two repositories. Mitigation: the
bffpublishes an OpenAPI contract, andwebfollows it. A breaking change needs coordinated merge requests. - Bad: three pipelines to configure. Mitigation: shared jobs in
ci-templates.
Pros and Cons of the Options
Section titled “Pros and Cons of the Options”Monorepo
Section titled “Monorepo”- Good: one merge request for a change in both the front end and the back end.
- Good: one pipeline, one link to share.
- Bad: needs path-based CI rules (
rules: changes:) to avoid building everything. - Bad: one version for all parts.
Polyrepo in a sub-group (chosen)
Section titled “Polyrepo in a sub-group (chosen)”- Good: independent pipelines and releases.
- Good: close to the setup of companies with several teams.
- Bad: API changes need coordination between repositories.
Hybrid
Section titled “Hybrid”- Bad: the documentation is separated from part of the code, which breaks the docs-as-code rule.
Naming: layer first (bff-pulse, ffb-pulse)
Section titled “Naming: layer first (bff-pulse, ffb-pulse)”- Good: groups repositories by type of component.
- Bad: the parts of one product are spread across the list.
- Bad: “FFB” (frontend for backend) is not a known term outside one company.
Naming: product first (pulse-bff, pulse-web)
Section titled “Naming: product first (pulse-bff, pulse-web)”- Good: the most common convention; groups repositories by product.
- Bad: no product-level space for shared settings, boards or milestones.
Naming: GitLab sub-group (chosen)
Section titled “Naming: GitLab sub-group (chosen)”- Good: a real hierarchy per product, with product-level settings and boards.
- Good: short repository names (
bff,web,docs). - Bad: one more level in the paths.