fix(committer): forbid --author in shared workspace committer prompt

This commit is contained in:
小橘 2026-04-29 11:15:27 +00:00
parent f6e29a5cae
commit 215a8f6566

View File

@ -47,7 +47,7 @@ function workspaceCommitterPrompt({
- Example: \`${branchCheckoutExample}\`
3. \`git add -A\`
4. Write a **conventional commit** message summarizing what changed and why (scope may be \`${conventionalCommitScopeHint}\` or similar).
5. \`git commit -m "<message>"\` (use multiple \`-m\` if you need a body).
5. \`git commit -m "<message>"\` (use multiple \`-m\` if you need a body). Do **not** pass \`--author\` — always use the repo's local git config identity.
6. \`git push -u origin <branch-name>\`
**committed=true** only if branch was created, commit succeeded, and **push** succeeded.