| name | pr-checklist |
|---|---|
| description | Use when opening or finalizing a GitHub PR for OpenMetadata. Walks through the repo PR template — linked issue, high-level design (for big PRs), unit/integration/Playwright tests + coverage, UI screen recording, and manual test steps — then drafts a fully-filled PR body and (optionally) creates the PR. |
| user-invocable | true |
| argument-hint | [branch name or PR number — defaults to current branch] |
Walks through .github/pull_request_template.md section by section, gathers evidence, and produces a fully-filled PR description before creating the PR.
- Before running
gh pr create - After finishing implementation, before requesting review
- Updating the description of an existing PR that's missing required sections
/pr-checklist # Walk template for current branch vs origin/main
/pr-checklist feature-branch # Same, for a different branch
/pr-checklist 12345 # Update description of an existing PR
Every PR must address each section below. Skip with an explicit "Not applicable — " rather than leaving blank.
- Linked issue —
Fixes #<issue-number>(GitHub auto-links). No issue → open one first. - Type of change — exactly one box checked.
- High-level design — required for large PRs (new features, refactors, breaking changes, >5 files); skip for small bug fixes.
- Tests — use cases covered, unit tests + coverage %, backend integration tests, ingestion integration tests, Playwright (UI) tests, manual test steps.
- UI screen recording / screenshots — required for any UI change.
- Checklist — every box either checked or explicitly N/A.
git status
git diff origin/main...HEAD --stat
git log origin/main..HEAD --onelineUse the diff to classify the PR:
- Touches
openmetadata-ui/src/main/resources/ui/→ UI change (recording required). - Touches
openmetadata-service/+ new/changed REST endpoints → backend integration tests required. - Touches
ingestion/src/metadata/ingestion/source/→ ingestion tests required. - >5 files changed, or new feature / refactor / breaking change → high-level design required.
- Single-file fix with obvious scope → small change, design section can be
N/A.
Ask the user for the issue number if not obvious from the branch name or commit messages. Verify it exists:
gh issue view <issue-number>If no issue exists, stop and ask the user to open one before continuing.
Run the relevant commands and capture output. Don't fabricate coverage numbers — run the tools.
Backend (Java):
mvn test -pl openmetadata-service -Dtest=<ChangedTestClass>
mvn jacoco:report -pl openmetadata-service
# Coverage HTML: openmetadata-service/target/site/jacoco/index.htmlBackend integration tests:
mvn test -pl openmetadata-integration-tests -Dtest=<NewIT>Ingestion (Python):
source env/bin/activate
cd ingestion
make unit_ingestion_dev_env
python -m pytest tests/unit/<changed_path>/ --cov=metadata.<module> --cov-report=term-missingFrontend unit tests (Jest):
cd openmetadata-ui/src/main/resources/ui
yarn test <ChangedComponent> --coveragePlaywright (UI E2E):
cd openmetadata-ui/src/main/resources/ui
yarn playwright:run --grep "<feature name>"For each, note the actual coverage % and test file paths in the PR body.
Tip: hand off the heavy lifting —
/test-enforcementproduces the same evidence and enforces 90% coverage on changed classes. Run it first if the user hasn't already.
Ask the user (or recall from the conversation): "What did you do by hand to verify this works?" List concrete, reproducible steps:
- Stack started (
./docker/run_local_docker.sh -m ui -d mysql) - Login user / role
- Click path through the UI
- Sample input + observed output
- Negative-path check (error case, permission denial)
If the PR touches the UI, the recording is required. Tell the user:
- macOS built-in:
Cmd+Shift+5→ "Record Selected Portion" - Save as
.mov, drag-and-drop into the PR description (GitHub uploads it inline) - Include before/after screenshots for visual changes (toolbar, layout, color)
If the user can't attach the recording yet, mark the section TODO: attach recording and don't open the PR until it's added — or open as draft.
Fill in .github/pull_request_template.md with everything gathered above. Show the user the full draft for review before creating.
New PR (use a HEREDOC so formatting survives):
gh pr create --base main --title "Fixes #<issue>: <short title>" --body "$(cat <<'EOF'
<filled-in template here>
EOF
)"Update existing PR:
gh pr edit <number> --body "$(cat <<'EOF'
<filled-in template here>
EOF
)"Return the PR URL when done.
Refuse to open the PR if any of these are missing — surface them to the user instead:
- Linked issue exists and is referenced as
Fixes #N - PR title matches
Fixes <issue-number>: <short explanation> - At least one "Type of change" box is checked
- Large PR has a high-level design section filled in (not
N/A) - Tests section lists actual files and coverage numbers (not placeholders)
- UI changes have a screen recording attached or marked as TODO with the PR opened as draft
- Manual test steps are concrete and reproducible
- Cross-layer checks for the change type pass (
make generate,mvn spotless:apply,yarn lint, etc.)
- Schema change without
make generate→ models out of sync - Backend API change without integration test in
openmetadata-integration-tests/ - New UI feature without Playwright spec
- Bug fix without a regression test that fails before the fix
- Large refactor with
N/Ain the design section — push back and ask for the design - Coverage % copy-pasted from another PR — re-run the tool