Table of Contents

๐ŸŽ‰ PR Review Utility - Phase 1 Complete!

๐Ÿ“ฆ Project Delivery

Your .NET Core 5 BitBucket PR Review Utility is ready!


๐Ÿš€ Quick Start (3 Steps)

  1. Configure BitBucket

    # Edit appsettings.json with your credentials
    
  2. Run Application

    dotnet restore
    dotnet run
    
  3. Open Browser

    http://localhost:5000
    

That's it! Enter a repository and PR ID to start reviewing.


๐Ÿ“š Documentation Guide

Read the docs in this order:

1. QUICKSTART.md โญ START HERE

  • 5-minute setup guide
  • Your first PR review
  • Common issues solved

2. README.md ๐Ÿ“– COMPREHENSIVE

  • Full feature documentation
  • API reference
  • Project structure
  • Deployment overview

3. TESTING.md ๐Ÿงช QUALITY ASSURANCE

  • Step-by-step testing guide
  • Test all features
  • Verify everything works

4. DEPLOYMENT.md ๐Ÿš€ GO LIVE

  • IIS deployment (Windows)
  • Nginx deployment (Linux)
  • Docker deployment
  • Security checklist

5. PROJECT_SUMMARY.md ๐Ÿ“Š TECHNICAL OVERVIEW

  • Architecture details
  • Technology stack
  • Design decisions
  • What's next (Phase 2 & 3)

๐Ÿ“ Project Structure

PRReviewUtility/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“„ Documentation (you are here)
โ”‚   โ”œโ”€โ”€ README.md              # Full documentation
โ”‚   โ”œโ”€โ”€ QUICKSTART.md          # Fast 5-min setup
โ”‚   โ”œโ”€โ”€ TESTING.md             # Testing guide
โ”‚   โ”œโ”€โ”€ DEPLOYMENT.md          # Deploy to production
โ”‚   โ””โ”€โ”€ PROJECT_SUMMARY.md     # Technical overview
โ”‚
โ”œโ”€โ”€ ๐ŸŽฏ Application Code
โ”‚   โ”œโ”€โ”€ Controllers/           # API & UI controllers
โ”‚   โ”œโ”€โ”€ Models/                # Data models
โ”‚   โ”œโ”€โ”€ Services/              # Business logic
โ”‚   โ”œโ”€โ”€ Views/                 # Razor pages
โ”‚   โ”œโ”€โ”€ wwwroot/               # Static files (JS/CSS)
โ”‚   โ”œโ”€โ”€ Program.cs             # Entry point
โ”‚   โ””โ”€โ”€ Startup.cs             # Configuration
โ”‚
โ””โ”€โ”€ โš™๏ธ Configuration
    โ”œโ”€โ”€ appsettings.json       # Main config
    โ”œโ”€โ”€ appsettings.Development.json
    โ””โ”€โ”€ PRReviewUtility.csproj # Project file

โœจ What You Get (Phase 1)

Core Features

โœ… Fetch PR from BitBucket - Enter repo + PR ID โœ… View PR Details - Title, author, branches, status โœ… Browse Changed Files - See all modifications โœ… View File Diffs - Expand individual file changes โœ… Export for AI - Download as .txt for ChatGPT/Claude โœ… Copy Raw Diff - Clipboard-ready unified diff โœ… Clean UI - Bootstrap 5 responsive design โœ… REST API - Integrate with other tools

Technical Stack

  • .NET Core 5 (MVC)
  • Vanilla JavaScript (no build process!)
  • Bootstrap 5
  • BitBucket API v2.0
  • Token-based authentication

๐ŸŽฏ Usage Examples

Example 1: Quick PR Review

1. Open http://localhost:5000
2. Repository: "backend-api"
3. PR ID: "42"
4. Click "Fetch Diff"
5. Review changes in UI

Example 2: AI-Assisted Review

1. Fetch PR diff (as above)
2. Click "Export Diff as .txt"
3. Open in text editor
4. Copy content
5. Paste into ChatGPT with:
   "Please review this PR for bugs and improvements"

Example 3: API Integration

# Get PR details
curl http://localhost:5000/api/pr/my-repo/42

# Download diff
curl -o diff.txt http://localhost:5000/api/pr/my-repo/42/export

๐Ÿ”ง Configuration Required

Before first use, update appsettings.json:

{
  "BitBucket": {
    "Workspace": "YOUR-WORKSPACE",    // โ† Change this
    "Username": "YOUR-USERNAME",      // โ† Change this
    "AppPassword": "YOUR-TOKEN"       // โ† Change this
  }
}

Get BitBucket App Password: BitBucket โ†’ Settings โ†’ App Passwords โ†’ Create


๐ŸŽ“ Learning Path

New to the project?

  1. Read QUICKSTART.md (5 min)
  2. Configure and run locally (10 min)
  3. Try fetching your first PR (2 min)
  4. Read README.md for details (20 min)
  5. Run through TESTING.md (30 min)

Ready to deploy?

  1. Complete local testing
  2. Read DEPLOYMENT.md
  3. Choose your platform (IIS/Nginx/Local)
  4. Follow deployment checklist

๐Ÿšฆ Next Phases (Roadmap)

Phase 2: Rule Engine (Coming Next)

  • Create review rules per repository
  • Ignore patterns (*.generated.cs, etc.)
  • Custom review checklists
  • JSON configuration files
  • Automated filtering

Phase 3: AI Integration (Future)

  • Direct OpenAI/Anthropic integration
  • Smart diff chunking
  • Token optimization
  • Automated suggestions
  • Batch processing

๐Ÿ†˜ Need Help?

Quick Answers

| Question | Answer | |----------|--------| | How do I start? | Read QUICKSTART.md | | Where's the API docs? | See README.md โ†’ API Endpoints | | How to deploy? | Read DEPLOYMENT.md | | Something broken? | Check TESTING.md | | What's the architecture? | See PROJECT_SUMMARY.md |

Troubleshooting

401 Unauthorized? โ†’ Check BitBucket credentials in appsettings.json

404 Not Found? โ†’ Verify repository slug and PR ID are correct

Can't start app? โ†’ Verify .NET 5 SDK installed: dotnet --version

UI not loading? โ†’ Check browser console (F12) for errors


๐Ÿ“Š File Checklist

Verify you have all these files:

Source Code

  • [x] Controllers/HomeController.cs
  • [x] Controllers/PRController.cs
  • [x] Models/BitBucketConfig.cs
  • [x] Models/PullRequest.cs
  • [x] Models/DiffFile.cs
  • [x] Services/IBitBucketService.cs
  • [x] Services/BitBucketService.cs
  • [x] Views/Home/Index.cshtml
  • [x] Views/Shared/_Layout.cshtml
  • [x] wwwroot/js/pr-viewer.js
  • [x] wwwroot/css/site.css
  • [x] Program.cs
  • [x] Startup.cs

Configuration

  • [x] appsettings.json
  • [x] appsettings.Development.json
  • [x] PRReviewUtility.csproj
  • [x] .gitignore

Documentation

  • [x] README.md
  • [x] QUICKSTART.md
  • [x] TESTING.md
  • [x] DEPLOYMENT.md
  • [x] PROJECT_SUMMARY.md
  • [x] INDEX.md (this file)

โœ… Acceptance Criteria

Phase 1 is complete and ready if:

  • [x] Code compiles without errors
  • [x] Application runs locally
  • [x] Can fetch PR from BitBucket
  • [x] UI displays PR details
  • [x] Can view file diffs
  • [x] Export works
  • [x] API endpoints respond
  • [x] Documentation complete
  • [x] Ready for deployment

All criteria met! โœ…


๐ŸŽ‰ Success!

You now have a fully functional PR Review Utility!

What You Can Do Now

  1. โœ… Use Locally - Review PRs on your machine
  2. โœ… Deploy to Server - Share with your team
  3. โœ… Integrate with Tools - Use the API
  4. โœ… Enhance with AI - Export diffs for review
  5. โœ… Customize - Modify to fit your needs

Next Steps

  1. Test It - Follow TESTING.md
  2. Deploy It - Follow DEPLOYMENT.md
  3. Use It - Start reviewing PRs!
  4. Plan Phase 2 - Add rule engine
  5. Enjoy - Automated PR reviews! ๐ŸŽŠ

๐Ÿ“ž Support

Documentation: Read the .md files in this folder Issues: Check TESTING.md troubleshooting Questions: Review PROJECT_SUMMARY.md


๐Ÿ™ Thank You!

Thank you for using PR Review Utility!

Built with:

  • โค๏ธ .NET Core 5
  • ๐Ÿ’ช BitBucket API
  • ๐ŸŽจ Bootstrap 5
  • โšก Vanilla JavaScript

Version: 1.0.0 (Phase 1) Status: โœ… Production Ready Next: Phase 2 - Rule Engine


๐Ÿ“– Documentation Index

| Document | Purpose | When to Read | |----------|---------|--------------| | QUICKSTART.md | Fast setup | First time setup | | README.md | Full guide | Understanding features | | TESTING.md | Test guide | Verify it works | | DEPLOYMENT.md | Deploy guide | Going to production | | PROJECT_SUMMARY.md | Technical overview | Understanding architecture | | INDEX.md | This file | Navigation |


Ready to start? โ†’ Open QUICKSTART.md

Need details? โ†’ Open README.md

Ready to deploy? โ†’ Open DEPLOYMENT.md


Happy Code Reviewing! ๐Ÿš€

Version 1.0.0 - Phase 1 Complete - November 2025