一键导入
create-pr
Create a GitHub pull request from the current branch using the latest commit message for title/body, assign to the current user, and return the PR link.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a GitHub pull request from the current branch using the latest commit message for title/body, assign to the current user, and return the PR link.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Format and build Proxy Verifier.
Write a git commit message and verify formatting before committing.
Run Apache Traffic Server AuTests correctly via autest.sh from tests/autests.
Build and run Proxy Verifier unit tests with CMake and CTest.
Evaluate current PR review comments, apply valid changes, and prepare suggested replies without posting them.
Read a GitHub issue with gh and produce an implementation and verification plan for ATS.
| name | create-pr |
| description | Create a GitHub pull request from the current branch using the latest commit message for title/body, assign to the current user, and return the PR link. |
This assumes that the ../commit/SKILL.md commit skill has been used and a commit is created. When asked to create a PR for the current branch:
master.master is currently checked out, create a development branch first.origin/master before doing work. If the change is
already committed on local master, create the new branch at the current
HEAD so the commit stays attached to the development branch.fix-create-pr-skill or add-on-connect-feature. Do not use a slash in
the branch name.origin first if it is not already pushed.--head owner from the origin remote, not
git config user.name.--assignee @me).branch=$(git branch --show-current)
if [ "$branch" = "master" ]; then
git fetch origin master
branch="fix-create-pr-skill"
git switch -c "$branch"
fi
subj=$(git log -1 --pretty=%s)
body=$(git log -1 --pretty=%b)
origin_url=$(git remote get-url origin)
head_owner=$(printf '%s\n' "$origin_url" | sed -E \
's#(git@github.com:|https://github.com/)##; s#\\.git$##; s#/.*##')
git push -u origin "$branch"
gh pr create \
--base master \
--head "${head_owner}:${branch}" \
--title "$subj" \
--body "$body" \
--assignee @me