From 5f48bd66a358288b4fda2e91b1cd02653f05c493 Mon Sep 17 00:00:00 2001 From: nbrieussel Date: Sun, 22 Mar 2026 14:16:20 +0100 Subject: [PATCH 1/4] chore: setup GitHub Copilot configuration and project conventions - Add copilot-instructions.md with project guidelines - Add CONTRIBUTING.md with branch, commit, and PR conventions - Add hooks for automatic mise install on mise.toml changes - Update README.md with onboarding instructions - Add terraform 1.9 to mise.toml dependencies --- .github/copilot-instructions.md | 77 +++++++++++++++++++ .github/hooks/check-mise-changes.sh | 10 +++ .github/hooks/mise-watcher.json | 11 +++ .vscode/settings.json | 6 ++ CONTRIBUTING.md | 114 ++++++++++++++++++++++++++++ README.md | 12 ++- mise.toml | 20 +++++ 7 files changed, 249 insertions(+), 1 deletion(-) create mode 100644 .github/copilot-instructions.md create mode 100644 .github/hooks/check-mise-changes.sh create mode 100644 .github/hooks/mise-watcher.json create mode 100644 .vscode/settings.json create mode 100644 CONTRIBUTING.md create mode 100644 mise.toml diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000..3086a1d --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,77 @@ +--- +name: "IntegratedDynamic Infrastructure - Configuration" +description: "Conventions de projet et préférences de codage pour l'infrastructure" +--- + +# Instructions pour GitHub Copilot + +## Onboarding + +### Gestion des dépendances + +Les dépendances du projet sont gérées via **mise**. + +**Installation** : +```bash +mise install +``` + +ℹ️ **Automatique** : Une fois `mise.toml` modifié, `mise install` se lance automatiquement via un hook. + +## Conventions de code + +### Branches + +Je dois TOUJOURS utiliser [Conventional Branch](https://conventional-branch.github.io/). + +Format strict: +``` +/ +``` + +Types: `feature/`, `bugfix/`, `hotfix/`, `ci/`, `chore/` + +Exemples: +- `feature/add-authentication-middleware` +- `bugfix/fix-memory-leak` +- `ci/add-github-actions-workflow` + +Règles obligatoires: +- Minuscules, chiffres, hyphens et dots uniquement +- Pas de hyphens/dots consécutifs ou aux extrémités +- Inclure ticket number si applicable: `feature/issue-456-add-auth` + +### Commits + +Utiliser [Conventional Commits](https://www.conventionalcommits.org/) : +``` +[scope]: +``` + +Types : `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `chore` + +### Pull Requests + +**Titre** : Doit être descriptif et clair. Format recommandé avec type et description. +``` +: Clear description of what the PR does +``` + +**Body** : Contexte, changements, issues liées (via `Closes #123`), et instructions de test. + +Utiliser [Conventional Comments](https://conventionalcomments.org/) pour les reviews : +``` +