Commit b8e1024
committed
Merge #104: Add PR Review Guide for systematic code reviews
533a700 docs: [#80] add comprehensive PR review guide for contributors (copilot-swe-agent[bot])
06f3e0a Initial plan (copilot-swe-agent[bot])
Pull request description:
Code reviews lacked systematic guidance, allowing architectural violations like #75 (config module in wrong DDD layer) to merge undetected. Reviewers needed a consolidated checklist of quality standards and common red flags.
## Changes
### New PR Review Guide (`docs/contributing/pr-review-guide.md`)
**Quality Standards Checklist** - Systematic verification of:
- Branching/commits (naming, conventional format)
- Code quality (DDD layer placement, error handling, module organization)
- Testing (coverage, conventions, isolation)
- Documentation (ADRs, rustdoc)
- Templates (Tera syntax, Ansible registration)
**Quick Red Flags** - Fast-scanning checklist for common violations:
```markdown
Architecture Violations:
- ❌ File I/O in domain/application layers
- ❌ Business logic in infrastructure/presentation
- ❌ Presentation directly calling infrastructure
Error Handling Issues:
- ❌ Generic string errors instead of typed enums
- ❌ Errors without context or actionable guidance
```
**Feedback Guidance** - When to request changes vs. comment vs. approve, with examples showing how to reference documentation:
```markdown
> This error handling doesn't follow [error-handling.md](./error-handling.md).
> See `src/domain/config/error.rs` for the typed error enum pattern.
```
**Living Document** - Framework for continuous improvement as patterns emerge
### Issue Template Updates
Added contributor note to `SPECIFICATION-TEMPLATE.md` and `GITHUB-ISSUE-TEMPLATE.md`:
> These criteria define what the PR reviewer will check. Use this as your pre-review checklist before submitting.
### Documentation Integration
- Added "Acceptance Criteria as PR Review Checklist" section to `roadmap-issues.md` explaining dual purpose (for authors and contributors)
- Linked from `docs/contributing/README.md` for discoverability
## Cross-References
Guide links to: DDD layer placement, error handling, module organization, branching, commit process, testing conventions, templates, known issues, and development principles.
<!-- START COPILOT CODING AGENT SUFFIX -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>Add PR Review Guide for Contributors</issue_title>
> <issue_description># Add PR Review Guide for Contributors
>
> ## 📋 Issue Information
>
> - **Type**: Documentation Enhancement
> - **Priority**: High
> - **Related Issue**: #75 - Move config module to correct DDD layer
> - **Depends On**: #79 - Add DDD Layer Placement Guide
> - **Parent Epic**: None (standalone improvement)
>
> ## 🎯 Problem Statement
>
> Code reviews currently lack a systematic guide for reviewers. This has allowed issues like architectural violations (#75 - config module in wrong layer) to be merged without detection.
>
> Reviewers need:
>
> - A quick reference guide for important review aspects
> - Clear red flags to watch for
> - Consistent review criteria across all PRs
>
> Without a standardized guide, we risk:
>
> - Merging code that violates architectural principles
> - Inconsistent review quality
> - Missing important quality aspects
> - Technical debt accumulation
>
> ## 💡 Proposed Solution
>
> Create a concise PR review guide at `docs/contributing/pr-review-guide.md` that consolidates project quality standards for reviewers, including a comprehensive checklist, quick red flags section, and guidance on providing constructive feedback.
>
> ## 📝 Implementation Plan
>
> See detailed specification: [docs/issues/add-pr-review-guide.md](https://github.com/torrust/torrust-tracker-deployer/blob/main/docs/issues/add-pr-review-guide.md)
>
> ## ✅ Acceptance Criteria
>
> > **Note for Contributors**: These criteria define what the PR reviewer will check. Use this as your pre-review checklist before submitting the PR to minimize back-and-forth iterations.
>
> - [ ] Document created at `docs/contributing/pr-review-guide.md`
> - [ ] Comprehensive quality standards checklist included
> - [ ] Checklist covers: branching, commits, code quality, testing, documentation
> - [ ] Quick red flags section for common violations
> - [ ] Example feedback showing how to reference docs
> - [ ] Guidance on when to request changes vs. comment vs. approve
> - [ ] Issue templates updated with contributor note about acceptance criteria
> - [ ] `docs/issues/SPECIFICATION-TEMPLATE.md` updated with pre-review checklist note
> - [ ] `docs/issues/GITHUB-ISSUE-TEMPLATE.md` updated with pre-review checklist note
> - [ ] `docs/contributing/roadmap-issues.md` updated with "Acceptance Criteria as PR Review Checklist" section
> - [ ] Linked from `docs/contributing/README.md`
> - [ ] All linters pass (markdownlint, cspell)
> - [ ] Document follows project markdown conventions
> - [ ] Clearly states it's a living document that will evolve
>
> ## 🏷️ Labels
>
> documentation, enhancement, code-review, contributing-guide</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> </comments>
>
</details>
- Fixes #80
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for you](https://github.com/torrust/torrust-tracker-deployer/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo.
ACKs for top commit:
josecelano:
ACK 533a700
Tree-SHA512: ca3804548b344975de28ac9218240483d761adebafc686825b6e2c56bb5b114fa5f92d58755298796c2232c933885f001d2762b870d3bc5a916c6099d9992dadFile tree
5 files changed
+219
-0
lines changed- docs
- contributing
- issues
5 files changed
+219
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
114 | 135 | | |
115 | 136 | | |
116 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
0 commit comments