mirror of
https://github.com/affaan-m/ECC.git
synced 2026-08-20 06:25:43 +02:00
* fix: disable Claude co-author attribution by default * fix: harden default co-author opt-out and correct the docs Follow-up on the co-author default in this PR. - Remove the existsSync/writeFileSync race in the installer settings write (CodeQL js/file-system-race, high). A single guarded read now covers the fresh-install case, and unreadable or non-object settings are left untouched. - Respect `attribution` as an explicit user choice. It supersedes `includeCoAuthoredBy` in Claude Code 2.1.x, so a user who configured it would otherwise have had a dead key written into their settings. - Share one opt-out rule via scripts/lib/claude-commit-attribution.js instead of duplicating it across the installer and plugin setup. - Update the git-workflow rule and its nine mirrors and translations, which still told users ECC does not ship this setting. We keep writing the deprecated `includeCoAuthoredBy` key rather than `attribution`: unknown keys fail Claude Code settings validation, so writing `attribution` would break users on older versions.
25 lines
992 B
Markdown
25 lines
992 B
Markdown
# Fluxo de Trabalho Git
|
|
|
|
## Formato de Mensagem de Commit
|
|
```
|
|
<tipo>: <descrição>
|
|
|
|
<corpo opcional>
|
|
```
|
|
|
|
Tipos: feat, fix, refactor, docs, test, chore, perf, ci
|
|
|
|
Nota: As instalações gerenciadas pelo ECC definem `"includeCoAuthoredBy": false` em `~/.claude/settings.json`, portanto os commits não incluem `Co-Authored-By` por padrão. Para manter a atribuição do Claude, defina `"includeCoAuthoredBy": true` ou configure `attribution`; o ECC nunca sobrescreve uma escolha explícita.
|
|
|
|
## Fluxo de Trabalho de Pull Request
|
|
|
|
Ao criar PRs:
|
|
1. Analisar o histórico completo de commits (não apenas o último commit)
|
|
2. Usar `git diff [branch-base]...HEAD` para ver todas as alterações
|
|
3. Rascunhar resumo abrangente do PR
|
|
4. Incluir plano de teste com TODOs
|
|
5. Fazer push com a flag `-u` se for uma nova branch
|
|
|
|
> Para o processo de desenvolvimento completo (planejamento, TDD, revisão de código) antes de operações git,
|
|
> veja [development-workflow.md](./development-workflow.md).
|