Loading...
Loading...
Compare original and translation side by side
AskUserQuestionToolSearchselect:AskUserQuestionrequest_user_inputask_userask_userpi-ask-userAskUserQuestionToolSearchselect:AskUserQuestionrequest_user_inputask_userask_userpi-ask-usergit statusgit diff HEADgit branch --show-currentgit log --oneline -10git rev-parse --abbrev-ref origin/HEAD 2>/dev/null || echo 'DEFAULT_BRANCH_UNRESOLVED'gh pr view --json url,title,state 2>/dev/null || echo 'NO_OPEN_PR'git statusgit diff HEADgit branch --show-currentgit log --oneline -10git rev-parse --abbrev-ref origin/HEAD 2>/dev/null || echo 'DEFAULT_BRANCH_UNRESOLVED'gh pr view --json url,title,state 2>/dev/null || echo 'NO_OPEN_PR'printf '=== STATUS ===\n'; git status; printf '\n=== DIFF ===\n'; git diff HEAD; printf '\n=== BRANCH ===\n'; git branch --show-current; printf '\n=== LOG ===\n'; git log --oneline -10; printf '\n=== DEFAULT_BRANCH ===\n'; git rev-parse --abbrev-ref origin/HEAD 2>/dev/null || echo 'DEFAULT_BRANCH_UNRESOLVED'; printf '\n=== PR_CHECK ===\n'; gh pr view --json url,title,state 2>/dev/null || echo 'NO_OPEN_PR'printf '=== STATUS ===\n'; git status; printf '\n=== DIFF ===\n'; git diff HEAD; printf '\n=== BRANCH ===\n'; git branch --show-current; printf '\n=== LOG ===\n'; git log --oneline -10; printf '\n=== DEFAULT_BRANCH ===\n'; git rev-parse --abbrev-ref origin/HEAD 2>/dev/null || echo 'DEFAULT_BRANCH_UNRESOLVED'; printf '\n=== PR_CHECK ===\n'; gh pr view --json url,title,state 2>/dev/null || echo 'NO_OPEN_PR'state: OPENurlstate: OPENurlgh pr view --json body --jq '.body'ce-pr-descriptionhttps://github.com/owner/repo/pull/123{title, body_file}ce-pr-description{title, body_file}ce-pr-description## Demo## Screenshotsce-demo-reelce-pr-descriptionbody_filecatce-pr-description=== TITLE ====== BODY_FILE ===<TITLE><BODY_FILE><TITLE>"`$\gh pr edit --title "<TITLE>" --body "$(cat "<BODY_FILE>")"gh pr view --json body --jq '.body'ce-pr-descriptionhttps://github.com/owner/repo/pull/123{title, body_file}ce-pr-description{title, body_file}ce-pr-description## Demo## Screenshotsce-demo-reelce-pr-descriptionbody_filecatce-pr-description=== TITLE ====== BODY_FILE ===<TITLE><BODY_FILE><TITLE>"`$\gh pr edit --title "<TITLE>" --body "$(cat "<BODY_FILE>")"origin/mainorigin/DEFAULT_BRANCH_UNRESOLVEDHEADgh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'maingit checkout -b <branch-name>git rev-parse --abbrev-ref --symbolic-full-name @{u}git log <upstream>..HEAD --onelineorigin/mainorigin/DEFAULT_BRANCH_UNRESOLVEDHEADgh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'maingit checkout -b <branch-name>git rev-parse --abbrev-ref --symbolic-full-name @{u}git log <upstream>..HEAD --onelinetype(scope): descriptionfix:feat:fix:fix:feat:chore:refactor:docs:perf:test:ci:build:style:type(scope): descriptionfix:feat:fix:fix:feat:chore:refactor:docs:perf:test:ci:build:style:state: OPENce-pr-description{title, body_file}state: OPENce-pr-description{title, body_file}git checkout -b <branch-name>git add -pgit add -Agit add .git add file1 file2 file3 && git commit -m "$(cat <<'EOF'
commit message here
EOF
)"git checkout -b <branch-name>git add -pgit add -Agit add .git add file1 file2 file3 && git commit -m "$(cat <<'EOF'
提交消息内容
EOF
)"git push -u origin HEADgit push -u origin HEADorigingh pr view --json baseRefName,urlbaseRefNameowner/repogit remote -voriginorigin/origingh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'originmainmasterdeveloptrunkgit rev-parse --verify origin/<candidate>origin<base-remote>/<base-branch>git rev-parse --verify <base-remote>/<base-branch> >/dev/null 2>&1 \
|| git fetch --no-tags <base-remote> <base-branch>
git diff <base-remote>/<base-branch>...HEADce-demo-reelTierDescriptionURLPathURLPath"none"ce-pr-description## DemoPathTier: skippedURLPath"none"ce-pr-descriptionce-pr-descriptionce-pr-descriptionbase:<base-remote>/<base-branch>ce-pr-descriptiondeveloprelease/*## Demohttps://github.com/owner/repo/pull/123baseRefNamebase:ce-pr-descriptionce-pr-description{title, body_file}ce-pr-description{title, body_file}origingh pr view --json baseRefName,urlbaseRefNameowner/repogit remote -voriginorigin/origingh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'originmainmasterdeveloptrunkgit rev-parse --verify origin/<candidate>origin<base-remote>/<base-branch>git rev-parse --verify <base-remote>/<base-branch> >/dev/null 2>&1 \
|| git fetch --no-tags <base-remote> <base-branch>
git diff <base-remote>/<base-branch>...HEADce-demo-reelTierDescriptionURLPathURLPath"none"ce-pr-description## DemoPathTier: skippedURLPath"none"ce-pr-descriptionce-pr-descriptionce-pr-descriptionbase:<base-remote>/<base-branch>developrelease/*ce-pr-description## Demohttps://github.com/owner/repo/pull/123baseRefNamebase:ce-pr-descriptionce-pr-description{title, body_file}ce-pr-description{title, body_file}=== TITLE ====== BODY_FILE ===ce-pr-description<TITLE><BODY_FILE><TITLE>"`$\gh pr create --title "<TITLE>" --body "$(cat "<BODY_FILE>")"ce-pr-descriptionce-pr-description=== TITLE ====== BODY_FILE ===<TITLE><BODY_FILE><TITLE>"`$\gh pr create --title "<TITLE>" --body "$(cat "<BODY_FILE>")"ce-pr-descriptionce-pr-descriptionpr:ce-pr-description=== TITLE ====== BODY_FILE ===<title><N><first two sentences><L><TITLE><BODY_FILE><TITLE>"`$\gh pr edit --title "<TITLE>" --body "$(cat "<BODY_FILE>")"ce-pr-descriptionpr:ce-pr-description=== TITLE ====== BODY_FILE ===<title><N><前两句><L><TITLE><BODY_FILE><TITLE>"`$\gh pr edit --title "<TITLE>" --body "$(cat "<BODY_FILE>")"