ci: format
This commit is contained in:
parent
e30ca4eb16
commit
9db185f4d4
13 changed files with 2252 additions and 52 deletions
|
|
@ -9,10 +9,6 @@ if printf '%s' "$CMD" | grep -qE '\bgh\b.*\s(-R|--repo)\b'; then
|
|||
exit 2
|
||||
fi
|
||||
|
||||
if printf '%s' "$CMD" | grep -qE '\bgh\s+issue\s+create\b'; then
|
||||
echo "Blocked: gh issue create must be run manually or explicitly approved." >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if printf '%s' "$CMD" | grep -qE '\bgit\s+push\b'; then
|
||||
BRANCH=$(git branch --show-current 2>/dev/null || true)
|
||||
|
|
|
|||
|
|
@ -34,9 +34,11 @@ Create a pull request from the current branch.
|
|||
3. Present the title and body. Ask for approval.
|
||||
|
||||
4. After approval, if `scripts/ci.sh` exists, run it:
|
||||
|
||||
```
|
||||
bash scripts/ci.sh
|
||||
```
|
||||
|
||||
If it fails, show the output and stop. Do NOT create the PR.
|
||||
|
||||
5. Run exactly one Bash command:
|
||||
|
|
|
|||
|
|
@ -13,9 +13,11 @@ Create a pull request immediately, no approval step.
|
|||
If the branch is `main` or `master`, tell the user and stop.
|
||||
|
||||
2. If `scripts/ci.sh` exists, run it:
|
||||
|
||||
```
|
||||
bash scripts/ci.sh
|
||||
```
|
||||
|
||||
If it fails, show the output and stop.
|
||||
|
||||
3. Draft the PR (do NOT present for approval — create it immediately):
|
||||
|
|
@ -35,12 +37,14 @@ Create a pull request immediately, no approval step.
|
|||
- Use backticks around code identifiers, function names, and file paths.
|
||||
|
||||
Run exactly one Bash command:
|
||||
|
||||
```
|
||||
gh pr create --title "<title>" --body "$(cat <<'EOF'
|
||||
<body here>
|
||||
EOF
|
||||
)"
|
||||
```
|
||||
|
||||
Print the PR URL from the output.
|
||||
|
||||
Total: 2-3 Bash calls. Do not run any other commands.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue