Add code review standards to GitHub Copilot configuration

This commit is contained in:
Guillaume 2025-09-27 11:32:24 +02:00
parent 6870883d7e
commit 0d4b922e45

View File

@ -31,6 +31,7 @@ Create specific instruction files:
- `documentation.instructions.md` - Documentation requirements
- `security.instructions.md` - Security best practices
- `performance.instructions.md` - Performance optimization guidelines
- `code-review.instructions.md` - Code review standards and GitHub review guidelines
### 3. `.github/prompts/` Directory
Create reusable prompt files:
@ -161,7 +162,8 @@ project-root/
│ │ ├── testing.instructions.md
│ │ ├── documentation.instructions.md
│ │ ├── security.instructions.md
│ │ └── performance.instructions.md
│ │ ├── performance.instructions.md
│ │ └── code-review.instructions.md
│ ├── prompts/
│ │ ├── setup-component.prompt.md
│ │ ├── write-tests.prompt.md
@ -190,6 +192,15 @@ tags: ["language", "framework", "best-practices"]
---
```
**Note**: For `code-review.instructions.md`, use:
```yaml
---
applyTo: ["**/*"]
description: "Code review standards and GitHub review guidelines"
tags: ["code-review", "github", "quality-assurance"]
---
```
**Prompts (.prompt.md):**
```yaml
---
@ -240,6 +251,7 @@ Before completing, verify:
- [ ] Security and performance considerations are addressed
- [ ] Testing guidelines are included
- [ ] Documentation standards are clear
- [ ] Code review standards are defined
## Workflow Template Structure