بنقرة واحدة
git-open-pr
Open a pull request for the current branch against its target, using the repo template
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Open a pull request for the current branch against its target, using the repo template
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | git-open-pr |
| description | Open a pull request for the current branch against its target, using the repo template |
| argument-hint | [title override] |
Turn a pushed feature branch into a reviewable PR. Idempotent: if a PR already exists for the branch, report it and stop - never open a second.
git branch --show-current - on a protected branch (default/integration), STOP; a PR is opened FROM a feature branch.git rev-parse HEAD equals git rev-parse @{u} - unpushed work goes through git-commit-push first.gh pr list --head <branch> --state open --json number,url --jq '.[0]'. Non-empty - report the URL and STOP (nothing to open).pr_target (default auto - the integration branch when one exists, else the default branch).git log -1 --pretty=%s). Honor profile artifact_language for title and body when set (e.g. write them in English even when the working language differs)..github/PULL_REQUEST_TEMPLATE.md or .github/pull_request_template.md), fill ITS sections honestly - real content per section, "None" where one genuinely does not apply; never leave the template's hint comments. No template - a concise default: what & why, the changes, and how to verify (the concrete steps or call a reviewer runs, plus the gates already run). When profile pr_risk_size: on, prepend the deterministic Risk/Size line (below).gh pr create --base <target> --title <title> --body-file <file> (--body-file avoids shell-quoting traps). On non-GitHub platforms use the profile cli (glab mr create, ...).pr_risk_size: on)Compute both mechanically so the same diff always yields the same flags:
git diff <target>...HEAD --shortstat: thresholds from profile pr_size_thresholds (default small <= 5 files & 50 lines; large >= 20 files or 400 lines; else medium).pr_risk_globs (path globs mapped to high / medium / low). No profile globs - skip Risk rather than guess.State one value each, e.g. Risk: low | Size: small.
git-commit-push; driving the opened PR to green and draining comments - git-finalize-pr; merging - git-merge-pr.Verify, review, and push pending work as one milestone commit
Drive the current branch's PR to merge-ready: CI green and every review comment handled, ending with an outcome label
After owner accept: guard-checked squash-merge of the current branch's PR, base sync and branch cleanup
Triage PR review comments: fix, discuss, or decline with reason - every thread answered
Cut a release: version, changelog, tag, and release object — policy-driven across trunk/gitflow and tag-only/full
Audit documentation claims against the code; report drift vs violation