chore(gitlab): add MR template (ADR-0028 phase 1) #238
Reference in New Issue
Block a user
Delete Branch "chore/gitlab-phase1-mr-template"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ADR-0028 Phase 1 (
mirror-and-bootstrap) — repo-side groundwork for the GitLab CE migration. Phase 1 is mostly ops work onvm-gitlab(groups, mirror push, branch protection, bot account); the only artefact that needs to land in the codebase ahead of the cutover is the GitLab MR template, so that the moment Phase 2 lands.gitlab-ci.ymland developers start opening MRs, they get the same structured prompt Gitea PRs use today.What lands
.gitlab/merge_request_templates/Default.md— port of.gitea/pull_request_template.md, content-identical except for two adjustments:docs/development.md §5in the original (which is "Observability dev-loop"); the correct section is §7 "Conventional commit cycle". The Gitea template still has the wrong ref — it gets deleted in Phase 3 cutover so fixing it there rather than touching it twice.GitLab discovers
.gitlab/merge_request_templates/*.mdautomatically;Default.mdbecomes the default for new MRs without any project-settings step.Out of scope (per ADR-0028 §"Migration sequence")
.gitlab-ci.ymlrenovate.jsoncustomManagers.fileMatchswap from.gitea/workflows/*.yml→.gitlab-ci.yml.gitlab-ci.ymlexists)docs/setup/01-dev-debian-vm-setup.md§8.gitea/workflows/+infra/ci-runners.compose.yml+infra/data/runner-*/Ops checklist (executed on
vm-gitlab— not part of this PR)For traceability; the following happens outside the repo, on
vm-gitlab(10.100.201.10, LAN-only — VPN for off-site access is sufficient):apf_portalunder the existingRecherche et développementgroup on GitLab CE (sibling toapf-ai-serviceandstargate).git remote add gitlab git@10.100.201.10:recherche-et-developpement/apf_portal.git && git push --mirror gitlabfrom a current clone.main: push direct disabled, squash-merge only, status checks list left empty (peuplé en Phase 2 quand.gitlab-ci.ymlapparaît).apf-portal-botservice account on GitLab, issue a dedicated SSH/GPG signing key (cf. ADR-0028 §"Signed commits"), generate a Renovate platform token.10.100.201.10. Renovate'sconfig:recommended+ therenovate.jsonin-repo are platform-agnostic; only the bot's host config needs the new endpoint + token.Test plan
.gitlab/merge_request_templates/Default.mdmarkdown renders identically to the Gitea template in a local preview.pnpm ci:check/ci:auditunchanged.Related
gitlab-ci-pipeline) oncevm-gitlabops bootstrap is complete and the runner is registered.