openclaw/.github/PULL_REQUEST_TEMPLATE.md

7.5 KiB

Pull Request: [Title]

📋 Summary

Closes #

🚀 What's New

Core Changes

1. [Feature/Component Name]

Purpose: [Why this change was made]

Implementation:

  • Change 1
  • Change 2
  • Change 3

Key Code (if applicable):

// Show important code snippets with file paths
// /path/to/file.js:123-145

📊 Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📝 Documentation update
  • 🔧 Configuration change
  • ♻️ Code refactoring (no functional changes)
  • Performance improvement
  • 🎨 UI/UX change
  • 🧪 Test coverage improvement
  • 🔒 Security fix

🧪 Testing

Automated Tests

  • Unit tests added/updated
  • Integration tests added/updated
  • All existing tests pass

Test Coverage:

  • New code has test coverage
  • Edge cases covered
  • Error handling tested

Test Results:

# Include test output or summary42 tests passing
✓ 0 tests failing

Manual Testing

Testing Checklist:

  • Tested in development environment
  • Tested in staging environment (if applicable)
  • Tested with real data/production-like scenarios
  • Tested error scenarios
  • Verified no console errors/warnings
  • Checked browser console for issues (frontend changes)

Environments Tested:

  • Development
  • Staging
  • Production (if safe to test)

📸 Screenshots/Videos

Before

After

🚀 Deployment Strategy

Deployment Steps

  1. Step 1
  2. Step 2
  3. Step 3

Configuration Changes

  • Environment variables added/updated: VARIABLE_NAME=value
  • Feature flags required: FEATURE_FLAG=true
  • Database migrations needed
  • External service configuration required

Phased Rollout (if applicable)

  • Phase 1: Deploy to staging for validation (recommended duration: X days)
  • Phase 2: Deploy to production with feature flag disabled
  • Phase 3: Enable feature flag for production traffic
  • Phase 4: Monitor metrics and remove feature flag

🔙 Rollback Plan

Quick Rollback:

  • Disable feature flag: FEATURE_FLAG=false and restart service (< 1 minute)
  • OR: Revert to previous deployment revision
  • OR: Git revert commit hash

Cleanup Required (if rollback is performed):

  • Database changes to revert
  • Cache to clear
  • External services to notify

💰 Cost Impact

Expected Cost Changes:

  • Cloud Run: +/- $X/month
  • Storage: +/- $X/month
  • API calls: +/- $X/month
  • Total Estimated Impact: +/- $X/month

Cost Optimization Notes:

  • [Explain any cost optimizations included]

Performance Impact

Expected Performance Changes:

  • Response time: +/- Xms
  • Memory usage: +/- XMB
  • Database queries: +/- X queries
  • API calls: +/- X calls

Benchmarks (if applicable):

Before: Xms average response time
After:  Xms average response time

🔍 Code Quality

  • ESLint passed (auto-checked by pre-commit hooks)
  • Prettier formatting applied (auto-checked by pre-commit hooks)
  • Markdownlint passed for docs (auto-checked by pre-commit hooks)
  • Commit messages follow conventional commits
  • Code reviewed by AI agent or peer
  • No console.log statements in production code
  • No commented-out code left behind
  • Error handling implemented for edge cases
  • Security considerations reviewed (XSS, SQL injection, auth, etc.)

📚 Documentation

  • README.md updated (if user-facing changes)
  • CONTRIBUTING.md updated (if dev workflow changes)
  • API documentation updated (if API changes)
  • Inline code comments added for complex logic
  • Architecture documentation updated (if structural changes)
  • CLAUDE.md updated (for AI context in future sessions)

🔐 Security Considerations

  • No sensitive data logged or exposed
  • Authentication/authorization implemented correctly
  • Input validation added for user input
  • SQL injection prevention (parameterized queries)
  • XSS prevention (sanitized output)
  • CSRF protection (if applicable)
  • Secrets stored securely (not in code/logs)
  • Rate limiting considered (if applicable)

📋 Pre-Merge Checklist

  • All tests pass locally
  • All pre-commit hooks pass
  • Code has been self-reviewed
  • Changes generate no new warnings
  • Dependent changes have been merged
  • Documentation has been updated
  • Reviewer(s) have approved the PR
  • Branch is up to date with base branch
  • Commit messages are clean and descriptive
  • Ready for production deployment

🔗 Additional Context

🚦 Status

  • 🔴 Draft - Work in progress
  • 🟡 Ready for Review - Code complete, needs review
  • 🟢 Approved - Ready to merge
  • 🔵 Merged - Deployed to staging
  • Complete - Deployed to production