docs: atualizar estado da autenticação do gh no CLAUDE.md (#30)
O gh passou a autenticar como manoel-freitas, então gh pr create já funciona neste repositório. Registra o estado atual e mantém a instrução de verificar com gh auth status antes de assumir, já que a conta padrão da máquina não enxerga o repositório. Co-Authored-By: Claude noreply@anthropic.com AI-Assisted: yes AI-Tool: claude-code Co-authored-by: manoel.neto <manoel.neto@creditas.com>
This commit is contained in:
@@ -24,7 +24,7 @@ PHP and Composer are **not on PATH** in this environment, and `vendor/` and `nod
|
|||||||
|
|
||||||
- Correct key: `~/.ssh/id_github_pessoal`. Verify with `ssh -i ~/.ssh/id_github_pessoal -o IdentitiesOnly=yes -T git@github.com` → should greet `Hi manoel-freitas!`.
|
- Correct key: `~/.ssh/id_github_pessoal`. Verify with `ssh -i ~/.ssh/id_github_pessoal -o IdentitiesOnly=yes -T git@github.com` → should greet `Hi manoel-freitas!`.
|
||||||
- The repo has `core.sshCommand = ssh -i ~/.ssh/id_github_pessoal -o IdentitiesOnly=yes` set locally, so plain `git push` works. If that config is lost, restore it instead of editing the remote URL.
|
- The repo has `core.sshCommand = ssh -i ~/.ssh/id_github_pessoal -o IdentitiesOnly=yes` set locally, so plain `git push` works. If that config is lost, restore it instead of editing the remote URL.
|
||||||
- **`gh` is a separate problem.** It authenticates by token, not SSH key, and is logged in as `manoel-freitas-neto`. So `gh pr create` / `gh repo view` fail on this repo even when `git push` succeeds. Opening a PR needs `gh auth login` as `manoel-freitas` (or `gh auth switch` with both accounts added) — ask the user to run it, since it's interactive.
|
- **`gh` authenticates separately**, by token rather than SSH key. As of 2026-08-10 it is logged in as `manoel-freitas`, so `gh pr create` / `gh repo view` work. Confirm with `gh auth status` before assuming: if it reports `manoel-freitas-neto`, that account cannot see this repo and every `gh` call fails on it. Recovering needs an interactive `gh auth login` (or `gh auth switch` with both accounts added), so ask the user to run it.
|
||||||
|
|
||||||
## Request spine for the public site
|
## Request spine for the public site
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user