Skip to content

Latest commit

 

History

History
110 lines (84 loc) · 4.45 KB

CONTRIBUTING.md

File metadata and controls

110 lines (84 loc) · 4.45 KB

Contributing to Gitdog

Thanks for your interest in Gitdog. This guide covers how the repository is organized, how to run it locally and what a pull request needs.

Repository layout

Path What lives there
src/ React web app (Vite, Tailwind CSS, react-i18next)
convex/ Convex backend: GitHub App, AI workflows, billing, data
packages/cli The gitdog npm CLI (bun workspace)
test/ Vitest suites for the web app and backend
e2e/ Opt-in end-to-end runners against a development backend
docs/ Conventions, GitHub App setup and AI model notes

Tech stack

Layer Technology
Frontend React 19, TypeScript, Vite, Tailwind CSS, react-i18next (en, ko, ja)
Backend Convex
AI Claude Opus 5.5 with GPT-6.2 Sol fallback; users' own keys optional
GitHub GitHub App (OAuth, webhooks, repository access)
Payments Lemon Squeezy
Hosting Firebase Hosting

How it works

GitHub webhook ─▶ Convex ─▶ repository index (keyword search)
                    │
                    ▼
        Claude Opus 5.5 (GPT-6.2 Sol fallback)
                    │
                    ▼
     draft reply or review ─▶ approval ─▶ GitHub comment / PR review

See docs/ai-models.md for model routing, pricing and usage accounting.

Development setup

Use Node.js 26 (nvm use) and Bun 1.4.4.

bun install
cp .env.example .env.local   # fill in your own development values
bunx convex dev              # creates or connects your Convex dev deployment
bun run dev                  # web app and Convex together

A development GitHub App is required for repository features; follow docs/github-app-setup.md.

Commands

Command Purpose
bun run dev Run the web app and Convex dev backend together
bun run typecheck Type-check the web app, backend and e2e runners
bun run lint ESLint across the monorepo
bun run format:check Prettier check
bun run test Web and backend test suites
bun run test:cli CLI test suite
bun run check:api Verify the CLI API catalog matches the backend
bun run test:e2e:recall Measure review recall on past commits (real provider calls)

Checks

Run these before opening a pull request:

bun run typecheck
bun run lint
bun run format:check
bun run test

When you change public Convex functions, also run bun run check:api (and regenerate the CLI catalog with bun packages/cli/scripts/sync-api.mjs if it reports drift). For CLI changes, run bun run typecheck:cli && bun run test:cli.

Pull requests

  • Use Conventional Commits with a lowercase subject, for example fix: keep the review checkpoint on retry.
  • Write commit messages, PR titles and descriptions in English.
  • Keep each pull request focused, and add or update tests with behavior changes.
  • Follow docs/convention.md and CLAUDE.md for code style.

Documentation

Security

Please do not open public issues for security problems. Email hyo@hyo.dev instead.

License

By contributing, you agree that your contributions are licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only).