{"id":26645915,"url":"https://github.com/henriteinturier/todolist-github-action-starter","last_synced_at":"2026-05-08T15:15:28.288Z","repository":{"id":284155609,"uuid":"953961593","full_name":"HenriTeinturier/todolist-github-action-starter","owner":"HenriTeinturier","description":"Starter repository for a React Todo List application. Used as a base project for learning and implementing GitHub Actions workflows, CI/CD practices, and branch protection strategies.","archived":false,"fork":false,"pushed_at":"2025-03-24T12:26:32.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T13:31:27.564Z","etag":null,"topics":["branch-protection","cicd","environments","exercise","github-actions","react","typescript","workflow"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HenriTeinturier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-24T10:57:17.000Z","updated_at":"2025-03-24T12:26:36.000Z","dependencies_parsed_at":"2025-03-24T13:41:32.607Z","dependency_job_id":null,"html_url":"https://github.com/HenriTeinturier/todolist-github-action-starter","commit_stats":null,"previous_names":["henriteinturier/todolist-github-action-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriTeinturier%2Ftodolist-github-action-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriTeinturier%2Ftodolist-github-action-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriTeinturier%2Ftodolist-github-action-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriTeinturier%2Ftodolist-github-action-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HenriTeinturier","download_url":"https://codeload.github.com/HenriTeinturier/todolist-github-action-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245366201,"owners_count":20603439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["branch-protection","cicd","environments","exercise","github-actions","react","typescript","workflow"],"created_at":"2025-03-24T22:46:41.370Z","updated_at":"2026-05-08T15:15:28.201Z","avatar_url":"https://github.com/HenriTeinturier.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TodoList GitHub Actions Starter\n\nUn kit de démarrage d'application Todo List React conçu pour apprendre les workflows CI/CD avec GitHub Actions.\n\n\u003e 📝 Consultez la [notice de l'exercice](notice.md) pour plus de détails sur les objectifs et les étapes à suivre.\n\n## Fonctionnalités\n\n- Ajouter de nouvelles tâches\n- Marquer les tâches comme complétées\n- Modifier les tâches existantes\n- Supprimer les tâches\n\n## Stack Technique\n\n- React 19\n- TypeScript\n- Vite\n- Vitest\n- React Testing Library\n- CSS3\n\n## Tests\n\nExécuter les tests en mode watch :\n\n```bash\nnpm test\n# ou\nyarn test\n```\n\nExécuter les tests pour le CI (exécution unique) :\n\n```bash\nnpm run test:ci\n# ou\nyarn run test:ci\n```\n\nGénérer un rapport de couverture de tests :\n\n```bash\nnpm run test:coverage\n# ou\nyarn test:coverage\n```\n\n## Structure du Projet\n\n```\nsrc/\n  ├── components/\n  │   ├── TodoList.tsx\n  │   ├── TodoItem.tsx\n  │   ├── TodoItemEdit.tsx\n  │   └── __tests__/\n  │       └── TodoList.test.tsx\n  ├── App.tsx\n  ├── App.css\n  └── main.tsx\n```\n\n## Configuration GitHub Actions\n\n### Environnements\n\nDeux environnements sont configurés :\n\n| Environnement | Variables                                     | Secrets        |\n| ------------- | --------------------------------------------- | -------------- |\n| `develop`     | `DEPLOY_URL: https://dev.todoapp.exemple.com` | `DEPLOY_TOKEN` |\n| `production`  | `DEPLOY_URL: https://todoapp.exemple.com`     | `DEPLOY_TOKEN` |\n\n### Gestion des Branches\n\n- `main` : branche principale\n- `develop` : branche de développement\n- Les branches `feature/*` doivent être créées depuis `develop`\n\n### Protection des Branches\n\nConfiguration requise pour `main` et `develop` :\n\n- ✅ Pull requests uniquement (pas de push direct)\n- ✅ Tests obligatoires\n- ✅ Pour `main` : minimum 1 reviewer\n\n## Workflow CI/CD\n\n### Flow de Développement\n\nLors d'une pull request d'une branche feature vers develop :\n\n1. Exécution des tests\n2. Build (fictif)\n3. Déploiement (fictif) sur l'environnement de développement\n\nEn cas de succès :\n\n- Merge automatique de la pull request\n- Création d'une pull request de develop vers main\n\n### Flow de Production\n\nAprès review et validation manuelle de la pull request develop → main :\n\n- Déploiement (fictif) sur l'environnement de production\n\n## Objectifs d'Apprentissage\n\nCe repository de démarrage est conçu pour vous aider à apprendre :\n\n- L'implémentation de GitHub Actions\n- La mise en place de pipelines CI/CD\n- Les stratégies de protection des branches\n- La configuration des environnements\n- Les tests automatisés en CI\n\n## Prochaines Étapes\n\nConsultez le repository solution [todolist-github-actions-solution](https://github.com/HenriTeinturier/todolist-github-actions-solution) pour voir l'implémentation complète avec les workflows GitHub Actions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenriteinturier%2Ftodolist-github-action-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenriteinturier%2Ftodolist-github-action-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenriteinturier%2Ftodolist-github-action-starter/lists"}