meta: add PR template and branching hygiene guidance

This commit is contained in:
Abhimanyu Saharan
2026-02-12 08:25:10 +00:00
parent bd1e599ae5
commit ec8d126301
2 changed files with 49 additions and 0 deletions

View File

@@ -25,6 +25,20 @@ When opening an issue, please include:
## Pull requests
### Branching hygiene (required)
Create feature branches from the latest `origin/master` to avoid unrelated commits in PRs:
```bash
git fetch origin
git checkout master
git reset --hard origin/master
git checkout -b <branch-name>
```
If you accidentally based your branch off another feature branch, fix it by cherry-picking the intended commits onto a clean branch and force-pushing the corrected branch (or opening a new PR).
### Expectations
- Keep PRs **small and focused** when possible.