Create PR from jj Workspace
Steps
- •
Verify changes exist
bashjj status jj log -r @
- •
Create conventional bookmark (if not exists)
bash# Format: <type>/<short-name> jj bookmark create feature/my-feature -r @
- •
Push with named bookmark
bashjj git push --bookmark <type>/<name>
- •
Get repo info
bashREMOTE=$(jj git remote list | grep origin | awk '{print $2}') OWNER_REPO=$(echo "$REMOTE" | sed 's|.*github.com[:/]||' | sed 's|\.git$||') - •
Create PR via API
bashgh api repos/$OWNER_REPO/pulls \ -f title="$TITLE" \ -f head="<type>/<name>" \ -f base="main" \ -f body="$BODY"
Bookmark Naming
Format: <type>/<short-name>
Examples:
- •
feature/jj-rules - •
fix/auth-timeout - •
refactor/db-queries - •
docs/readme-update
PR Title Format
Follow gitmoji + conventional commit with mandatory scope:
- •
:sparkles: feat(scope): description - •
:bug: fix(scope): description - •
:recycle: refactor(scope): description
Arguments
$ARGUMENTS
If empty, generate title from jj log -r @ -T description.