mirror of
https://github.com/booklore-app/booklore.git
synced 2026-02-18 00:17:53 +01:00
chore: clean up PR template and contributing guide (#2660)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
72
.github/pull_request_template.md
vendored
72
.github/pull_request_template.md
vendored
@@ -1,59 +1,55 @@
|
||||
## 🚀 Pull Request
|
||||
## 📝 Description
|
||||
|
||||
### 📝 Description
|
||||
<!-- Why is this change needed? Link related issues (e.g. Fixes #123) -->
|
||||
|
||||
<!-- Provide a clear and concise summary of the changes introduced in this pull request -->
|
||||
<!-- Reference related issues using "Fixes #123", "Closes #456", or "Relates to #789" -->
|
||||
## 🏷️ Type of Change
|
||||
|
||||
### 🛠️ Changes Implemented
|
||||
- [ ] Bug fix
|
||||
- [ ] New feature
|
||||
- [ ] Enhancement to existing feature
|
||||
- [ ] Refactor (no behavior change)
|
||||
- [ ] Breaking change (existing functionality affected)
|
||||
- [ ] Documentation update
|
||||
|
||||
<!-- Detail the specific modifications, additions, or removals made in this pull request -->
|
||||
-
|
||||
## 🔧 Changes
|
||||
|
||||
### 🧪 Testing Strategy
|
||||
<!-- List the specific modifications made -->
|
||||
-
|
||||
|
||||
<!-- Describe the testing methodology used to verify the correctness of these changes -->
|
||||
<!-- Include testing approach, scenarios covered, and edge cases considered -->
|
||||
## 🧪 Testing
|
||||
|
||||
### 📸 Visual Changes _(if applicable)_
|
||||
<!-- What did you test? What edge cases did you cover? What could still break? -->
|
||||
|
||||
<!-- Attach screenshots or videos demonstrating UI/UX modifications -->
|
||||
## 📸 Screenshots _(if applicable)_
|
||||
|
||||
<!-- Attach screenshots or videos for UI changes -->
|
||||
|
||||
---
|
||||
|
||||
## ⚠️ Required Pre-Submission Checklist
|
||||
## ✅ Pre-Submission Checklist
|
||||
|
||||
### **Please Read - This Checklist is Mandatory**
|
||||
> **All boxes must be checked before requesting review.** Incomplete PRs will be closed without review, no exceptions.
|
||||
|
||||
> **Important Notice:** We've experienced several production bugs recently due to incomplete pre-submission checks. To maintain code quality and prevent issues from reaching production, we're enforcing stricter adherence to this checklist.
|
||||
>
|
||||
> **All checkboxes below must be completed before requesting review.** PRs that haven't completed these requirements will be sent back for completion.
|
||||
- [ ] Code follows project style guidelines and conventions
|
||||
- [ ] Branch is up to date with `develop` (merge conflicts resolved)
|
||||
- [ ] Automated tests added or updated to cover changes (backend **and** frontend)
|
||||
- [ ] All tests pass locally (`./gradlew test` for backend, `ng test` for frontend)
|
||||
- [ ] Changes manually verified in local dev environment (including related features)
|
||||
- [ ] Flyway migration versioning is correct _(if schema was modified)_
|
||||
- [ ] Documentation PR submitted to [booklore-docs](https://github.com/booklore-app/booklore-docs) _(if user-facing changes)_
|
||||
- [ ] PR is reasonably scoped (PRs over 500+ changed lines will be closed, split into smaller PRs)
|
||||
|
||||
#### **Mandatory Requirements** _(please check ALL boxes)_:
|
||||
### 🤖 AI-Assisted Contributions
|
||||
|
||||
- [ ] **Code adheres to project style guidelines and conventions**
|
||||
- [ ] **Branch synchronized with latest `develop` branch** _(please resolve any merge conflicts)_
|
||||
- [ ] **🚨 CRITICAL: Automated unit tests added/updated to cover changes** _(MANDATORY for ALL Spring Boot backend and Angular frontend changes - this is non-negotiable)_
|
||||
- [ ] **🚨 CRITICAL: All tests pass locally** _(run `./gradlew test` for Spring Boot backend, and `ng test` for Angular frontend - NO EXCEPTIONS)_
|
||||
- [ ] **🚨 CRITICAL: Manual testing completed in local development environment** _(verify your changes work AND no existing functionality is broken - test related features thoroughly)_
|
||||
- [ ] **Flyway migration versioning follows correct sequence** _(if database schema was modified)_
|
||||
- [ ] **Documentation PR submitted to [booklore-docs](https://github.com/booklore-app/booklore-docs)** _(required for features or enhancements that introduce user-facing or visual changes)_
|
||||
> **If any part of this PR was generated or assisted by AI tools (Copilot, Claude, ChatGPT, etc.), all items below are mandatory.** AI-generated code that hasn't been thoroughly reviewed is the leading cause of reverted PRs. You are responsible for every line you submit. "The AI wrote it" is not an excuse.
|
||||
|
||||
#### **Why This Matters:**
|
||||
|
||||
Recent production incidents have been traced back to:
|
||||
|
||||
- **Incomplete testing coverage (especially backend)**
|
||||
- Merge conflicts not resolved before merge
|
||||
- Missing documentation for new features
|
||||
|
||||
**Backend changes without tests will not be accepted.** By completing this checklist thoroughly, you're helping maintain the quality and stability of Booklore for all users.
|
||||
|
||||
**Note to Reviewers:** Please verify the checklist is complete before beginning your review. If items are unchecked, kindly ask the contributor to complete them first.
|
||||
- [ ] Every line has been read, understood, and can be explained by the author
|
||||
- [ ] PR is scoped to a single logical change, not a dump of everything the AI suggested
|
||||
- [ ] Tests validate actual behavior, not just coverage (AI-generated tests often assert nothing meaningful)
|
||||
- [ ] No dead code, placeholder comments, `TODO`s, or unused scaffolding
|
||||
|
||||
---
|
||||
|
||||
### 💬 Additional Context _(optional)_
|
||||
## 💬 Additional Context _(optional)_
|
||||
|
||||
<!-- Provide any supplementary information, implementation considerations, or discussion points for reviewers -->
|
||||
<!-- Any extra information or discussion points for reviewers -->
|
||||
|
||||
Reference in New Issue
Block a user