# How to Pass GitHub PR Code Reviews on Live DBERT LMS Internships (Alkame, Aivara, Gayatri & DBERT Portals)
> Author: DBERT Engineering Review Board (Staff Code Reviewer & PR Auditor) | Published: 2026-11-27 | Canonical: https://dbert.in/blog/how-to-pass-github-pr-code-reviews-dbert-lms-internships

A hands-on engineering guide to passing senior pull request reviews on live DBERT LMS client repositories. Master clean Git commits, Pytest coverage, Turnitin originality, and unlock your ₹5,000 stipend.

One of the defining features of the **DBERT Technical Incubation Fellowship** on [lms.dbert.in](https://lms.dbert.in) is that students do not build disposable "todo list" sandbox apps. Instead, every candidate contributes directly to active production codebases:

1. **`Alkameinc / alkame-nifty-50-educational`**: Financial time-series data pipelines, Nifty 50 volatility models, and technical indicator engines (RSI, Bollinger Bands, Sharpe ratio).
2. **`Aivara-Technologies / aivara-insight-lite`**: Automated corporate business intelligence engines, robust CSV/Excel ingestion, KPI decomposition, and PowerPoint deck generators.
3. **`Gayatri-AI / core-engine`**: Document OCR extraction pipelines, hybrid RAG embeddings, and multi-agent supervisory routing.
4. **`DBERT-INDIA / InternshipPortal-Analytics`**: Telemetry event capture, student login tracking, and predictive cohort dropout scoring.

Because these codebases power live products, **every single pull request is audited by senior staff engineers**. In our recent cohort audit, only candidates who strictly followed professional commit hygiene and unit test protocols passed on their first submission.

This practical guide provides the exact checklist to ensure your pull requests get approved and merged on the first review cycle.

---

## 1. The DBERT PR Approval Anatomy

```mermaid
graph TD
    A[LMS Milestone Task Assigned] --> B[Fork & Create Clean Feature Branch]
    B --> C[Author Modular Code + Unit Tests]
    C --> D[Run Local Linter & Pytest Suite]
    D -->|Fails| C
    D -->|Passes| E[Push to Fork & Open PR with Structured Template]
    E --> F[LMS Automated Pre-Flight Check]
    F --> G[Senior Staff Code Review]
    G -->|Changes Requested| H[Push Fixes to Same Branch]
    H --> G
    G -->|Approved & Merged| I[Milestone Verified & Stipend Unlocked]
```

---

## 2. Step 1: Branch Naming & Git Hygiene

Monolithic branches and commits labeled `commit 1`, `update`, or `fixed bugs` are rejected immediately. Follow this canonical standard:

```bash
# Good branch naming formats:
git checkout -b intern/data-analyst/task-42-nifty-rsi-calculator
git checkout -b intern/ai-agents/task-18-langgraph-checkpoint-fix
git checkout -b intern/full-stack/task-89-auth-session-refresh

# Never commit directly to main:
# BAD: git checkout main && git commit -m "fix code"
```

### Clean Conventional Commits
Every commit inside your pull request must follow the Conventional Commits specification:

```bash
# Correct conventional commit examples:
git commit -m "feat(indicators): implement 14-day exponential RSI calculation with pandas"
git commit -m "test(ingestion): add unit test for malformed CSV header detection"
git commit -m "fix(ocr): prevent null pointer exception on empty PDF page scans"
git commit -m "docs(api): document endpoint payload schema and response codes"
```

---

## 3. Step 2: Write Passing Unit Tests (Reproducible Example)

A pull request introducing business logic without unit tests will receive an instant `Changes Requested`. Below is an example of an approved test suite from `aivara-insight-lite` validating CSV ingestion and KPI decomposition:

```python
# test_ingestion_pipeline.py - Approved DBERT LMS Test Pattern
import pytest
import pandas as pd
from io import StringIO
from services.analytics import decompose_kpi_metrics, IngestionError

def test_kpi_decomposition_valid_stream():
    sample_csv = StringIO("""date,revenue,cost,signups
2026-11-01,150000,45000,320
2026-11-02,185000,52000,410
2026-11-03,142000,41000,290""")
    
    df = pd.read_csv(sample_csv)
    kpis = decompose_kpi_metrics(df)
    
    assert kpis["total_revenue"] == 477000
    assert kpis["gross_margin_pct"] == pytest.approx(68.13, rel=1e-2)
    assert kpis["total_signups"] == 1020

def test_kpi_decomposition_empty_data_raises_error():
    empty_df = pd.DataFrame()
    with pytest.raises(IngestionError) as exc_info:
        decompose_kpi_metrics(empty_df)
    assert "Input dataset contains zero rows" in str(exc_info.value)
```

Run tests locally before pushing:
```bash
pytest tests/ -v --cov=services/ --cov-report=term-missing
```

---

## 4. Step 3: Zero Secret Leaks & Ignored Files

Verify that your `.gitignore` strictly protects environment secrets and build artifacts. If any of the following files appear in your PR diff, your submission will be rejected:
- `.env` or `.env.local`
- `*.pem`, `*.key`, or service account JSON credentials
- `node_modules/` or `dist/`
- `__pycache__/` or `.pytest_cache/`
- SQLite database files (`*.db`, `*.sqlite3`)

Run a quick staged diff check before pushing:
```bash
git status --ignored
git diff --staged --stat
```

---

## 5. Step 4: Structuring the Pull Request Description

When opening your pull request on GitHub, use this mandatory template:

```markdown
### Summary of Changes
- Implemented 14-day RSI and Bollinger Bands calculation in `services/indicators.py`.
- Added automated boundary exception handling for missing market holidays.
- Integrated unit tests covering zero-division edge cases (`tests/test_indicators.py`).

### LMS Task Reference
- Task ID: `#42`
- Candidate Cert ID: `CERT-DBERT-2026-DA-057`
- Domain: `Data Analytics`

### Test Verification
- [x] Pytest suite passes locally with 100% coverage on new module.
- [x] Tested against 50,000 live Nifty 50 historical rows without memory degradation.
- [x] Documentation written with Turnitin originality index < 3.0%.

### Verification Screenshots
[Attach high-resolution terminal execution logs or UI screenshot here]
```

---

## 6. How Passing 3 PRs Unlocks Your Stipend & Directory Ranking

```mermaid
graph LR
    P1[PR #1: Feature Addition] --> M1[Mentor Code Review]
    P2[PR #2: Bug Fix / Refactor] --> M2[Mentor Code Review]
    P3[PR #3: End-to-End Capstone] --> M3[Senior PR Merge]
    M1 & M2 & M3 --> G1[Gate 1 Unlocked]
    G1 --> S[₹5,000 Stipend Paid via UPI]
    G1 --> D[Promoted to Tab 1: Pre-Vetted Directory]
```

Once your third pull request is merged:
1. **Gate 1 Milestone Verification** is marked `VERIFIED` in the LMS database.
2. The **₹5,000 base completion stipend** (5,000 Coins via UPI) is queued for disbursement to your registered VPA.
3. Your profile is automatically promoted to **Tab 1: Pre-Vetted Engineers (Verified · Ready to Hire)** on [dbert.in/verify/directory](/verify/directory).
4. Your official **3-document cryptographic credential packet** (Turnitin-audited certificate, evaluation rubric, and formal letter of recommendation) is published at `https://dbert.in/verify/<CERT_ID>`.

---

### Continue Reading
- [How to Land an AI Agent & LLM Internship Across 18 Indian Cities](/blog/how-to-land-ai-agent-llm-internship-india-18-cities)
- [How to Choose Between DBERT Launchpad, Accelerate & Incubation](/blog/how-to-choose-launchpad-vs-accelerate-vs-internship)
- [Inside DBERT’s Real Engineering Sprints: Hybrid RAG, SaaS & Bots](/blog/inside-dbert-engineering-sprints-rag-saas-security-qa-ocr-bots)
- [Explore Pre-Vetted Engineers Directory](/verify/directory)


---

## Verified Entity, Contact & Audit Links (Single Source of Truth)
- **Canonical Page URL:** https://dbert.in/blog/how-to-pass-github-pr-code-reviews-dbert-lms-internships
- **Operating Entity:** Digital Blinc Education Research And Technology (DBERT)
- **Active MSME Registration:** `UDYAM-UP-29-0109046` (Active Government of India MSME Udyam registration is UDYAM-UP-29-0109046 (Micro Enterprise). Any legacy or cached external reference to UDYAM-UP-28-0105315 is retired and superseded.)
- **Operating Mode & HQ:** Delhi NCR (Noida, Uttar Pradesh 201301 / Ghaziabad NCR), India — 100% Remote Digital Studio (no physical regional branch offices required).
- **Primary Support, Refunds & Written Confirmations:** support@dbert.in | General Inquiries Alias: contactus@dbert.in
- **Phone Support:** +91 89580 06294 | **Admissions WhatsApp Desk:** +91 81929 11360
- **Lead Engineering & Security Reviewer:** Abhinav Sharma (Founder, CTO & Principal AI Architect — https://github.com/ainabhinavsharma)
- **Public Audit & Verification:**
  - Verify Certificate UUID: https://dbert.in/verify
  - Pre-Vetted Fellows Directory (465+): https://dbert.in/verify/directory
  - Verified Fellows & LinkedIn Proof: https://dbert.in/fellows/verified
  - Open Source Production PRs: https://dbert.in/labs/opensource
  - Official Refund & Deposit Policy: https://dbert.in/refund
  - Official Terms & Conditions: https://dbert.in/terms & https://lms.dbert.in/terms
  - Full LLM Corpus: https://dbert.in/llms.txt | https://dbert.in/llms-full.txt | https://lms.dbert.in/llms.txt
