Strengthen PR requirements to weed out low-effort AI-generated PRs

This commit is contained in:
ACX
2026-02-17 20:15:05 -07:00
committed by acx10
parent 9991fd910e
commit 05d0cc55f3
3 changed files with 89 additions and 21 deletions
+57 -17
View File
@@ -1,6 +1,10 @@
## 📝 Description
<!-- Why is this change needed? Link related issues (e.g. Fixes #123) -->
<!-- Why is this change needed? Explain in your own words. -->
**Linked Issue:** Fixes #<!-- issue number -->
> **Required.** Every PR must reference an approved issue. If no issue exists, [open one](https://github.com/booklore-app/booklore/issues/new) and wait for maintainer approval before submitting a PR. Unsolicited PRs without a linked issue will be closed.
## 🏷️ Type of Change
@@ -16,19 +20,50 @@
<!-- List the specific modifications made -->
-
## 🧪 Testing
## 🧪 Testing (MANDATORY)
<!-- MANDATORY. PRs without this filled out will be closed.
- What exact steps did you follow to verify the fix or feature works?
- How did you manually regression test existing functionality?
- What edge cases did you cover?
-->
> **PRs without this section filled out will be closed.** "Tests pass" or "Tested locally" is not sufficient. You must provide specifics.
## 📸 Screenshots / Video (MANDATORY)
**Manual testing steps you performed:**
<!-- Walk through the exact steps you took to verify your change works. Be specific. -->
1.
2.
3.
> Due to an increase in untested, AI-generated PRs, we have made this section mandatory for all submissions. Please include screenshots or a screen recording that demonstrates your change working end-to-end (e.g., the bug fix in action, the new feature working, API responses, or test output for backend changes). **PRs that do not include this will be closed without review.** Thank you for helping us keep the project stable.
**Regression testing:**
<!-- How did you verify that existing related features still work after your change? -->
-
<!-- Attach screenshots or screen recordings here -->
**Edge cases covered:**
<!-- What boundary conditions or unusual inputs did you test? -->
-
**Test output:**
<!-- Paste the actual terminal output from running tests. Not "all pass", the real output. -->
<details>
<summary>Backend test output (<code>./gradlew test</code>)</summary>
```
PASTE OUTPUT HERE
```
</details>
<details>
<summary>Frontend test output (<code>ng test</code>)</summary>
```
PASTE OUTPUT HERE
```
</details>
## 📸 Screen Recording / Screenshots (MANDATORY)
> Every PR must include a **screen recording or screenshots** showing the change working end-to-end in a running local instance (both backend and frontend). This means you must have actually built, run, and tested the code yourself. PRs without visual proof will be closed without review.
<!-- Attach screen recording or screenshots here -->
---
@@ -36,24 +71,29 @@
> **All boxes must be checked before requesting review.** Incomplete PRs will be closed without review. No exceptions.
- [ ] This PR is linked to an approved issue
- [ ] Code follows project style guidelines and conventions
- [ ] Branch is up to date with `develop` (merge conflicts resolved)
- [ ] I ran the full stack locally (backend + frontend + database) and verified the change works
- [ ] 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)
- [ ] Screenshots or video proving the change works are attached above **(MANDATORY)**
- [ ] All tests pass locally and output is pasted above
- [ ] Screen recording or screenshots are attached above proving the change works
- [ ] PR is a single focused change (one bug fix OR one feature, not multiple unrelated changes)
- [ ] PR is reasonably scoped (PRs over 1000+ changed lines will be closed, split into smaller PRs)
- [ ] No unsolicited refactors, cleanups, or "improvements" are bundled in
- [ ] 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 1000+ changed lines will be closed, split into smaller PRs)
### 🤖 AI-Assisted Contributions
> **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.
> **If any part of this PR was generated or assisted by AI tools (Copilot, Claude, ChatGPT, etc.), all items below are mandatory.** You are fully responsible for every line you submit. "The AI wrote it" is not an excuse, and AI-generated PRs that clearly haven't been reviewed are the #1 reason PRs get closed.
- [ ] Every line has been read, understood, and can be explained by the author
- [ ] I have read and understand every line of this PR and can explain any part of it during review
- [ ] I personally ran the code and verified it works (not just trusted the AI's output)
- [ ] 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
- [ ] No dead code, placeholder comments, `TODO`s, or unused scaffolding left behind by AI
- [ ] I did not submit refactors, style changes, or "improvements" the AI suggested beyond the scope of the issue
---
+29 -4
View File
@@ -30,6 +30,20 @@ Thanks for your interest in contributing to Booklore! Whether you're fixing bugs
---
## Before You Start
> **Issue first, PR second.** Every pull request must be linked to an approved issue. If you want to work on something, [open an issue](https://github.com/booklore-app/booklore/issues/new) (or find an existing one) and wait for a maintainer to approve it before writing code. PRs submitted without a linked, approved issue will be closed.
This protects both your time and ours. It ensures that the work is actually wanted and that you're heading in the right direction before you invest effort.
**What will get your PR closed immediately:**
- No linked issue
- No screenshots or screen recording proving the change works
- No test output pasted in the PR
- Bulk AI-generated changes that clearly haven't been reviewed or tested
- Unsolicited refactors, cleanups, or "improvements" nobody asked for
- PRs over 1000+ changed lines (split them up)
## Where to Start
Not sure where to begin? Look for issues labeled:
@@ -248,12 +262,17 @@ BREAKING CHANGE: OAuth 2.0 is no longer supported
Before opening your PR:
- [ ] PR is linked to an **approved** issue (PRs without a linked issue will be closed)
- [ ] All tests pass (`./gradlew test` and `ng test`)
- [ ] Actual test output is pasted in the PR description
- [ ] Code follows project conventions (see [Code Style](#code-style))
- [ ] IntelliJ linter shows no errors
- [ ] Branch is up-to-date with `develop`
- [ ] You ran the full stack locally and manually verified the change works
- [ ] PR description includes a screen recording or screenshots proving it works
- [ ] PR description explains *what* changed and *why*
- [ ] PR is linked to a related issue (if applicable)
- [ ] PR contains a single logical change (one bug fix OR one feature)
- [ ] No unrelated refactors, style changes, or "improvements" are bundled in
- [ ] **PR is reasonably sized.** PRs with 1000+ changed lines will be closed without review. Break large changes into small, focused PRs.
- [ ] **For user-facing features:** submit a companion docs PR at [booklore-docs](https://github.com/booklore-app/booklore-docs)
@@ -261,10 +280,16 @@ Before opening your PR:
Contributions using AI tools (Copilot, Claude, ChatGPT, etc.) are welcome, but the quality bar is the same as human-written code. **If you ship it, you own it.**
- **Review every line.** You must be able to explain any part of your change during review.
- **Keep PRs focused.** One feature, one fix, or one refactor per PR.
- **Scrutinize AI-generated tests.** They often pass trivially without asserting anything meaningful.
We've seen a sharp increase in AI-generated PRs where the contributor clearly never ran the code, didn't test it, and can't explain what it does. These waste maintainer time and will be closed on sight.
**If you use AI to help write code, you must still:**
- **Run the code yourself.** Build the project, start the full stack, and manually verify the change works. Trusting the AI's output without running it is not acceptable.
- **Review every line.** You must be able to explain any part of your change during review. If asked "why did you do X?" and your answer is "the AI suggested it," the PR will be closed.
- **Keep PRs focused.** One feature, one fix, or one refactor per PR. Do not submit a dump of everything the AI suggested.
- **Scrutinize AI-generated tests.** They often pass trivially without asserting anything meaningful. Tests that don't validate real behavior will be rejected.
- **Clean up.** Remove dead code, placeholder comments, empty catch blocks, and unnecessary boilerplate.
- **Stay in scope.** Do not submit refactors, style changes, or "improvements" the AI suggested that are outside the scope of the linked issue.
---
+3
View File
@@ -211,6 +211,9 @@ volumes:
| 🛠️ **Want to help build?** | [Contributing Guide](CONTRIBUTING.md) |
| 💬 **Come hang out** | [Discord Server](https://discord.gg/Ee5hd458Uz) |
> [!WARNING]
> **Before opening a PR:** Open an issue first and get maintainer approval. PRs without a linked issue, without screenshots/video proof, or without pasted test output will be closed. AI-assisted contributions are welcome, but you must run, test, and understand every line you submit. See the [Contributing Guide](CONTRIBUTING.md) for full details.
---
## 💜 Support BookLore