7bcdd44fe5
gitea_edit_pr called _auth() (and resolved the remote) before checking whether any editable field was provided, so a pure validation error (no fields) surfaced as a RuntimeError "no credentials" in environments without Gitea auth — making test_edit_pr_no_fields_raises depend on credentials/network/env. Move the payload build + no-fields ValueError ahead of _resolve/_auth/URL setup. Behavior is unchanged when fields are provided (same _resolve → _auth → audited PATCH path). No change to auth, retry/backoff, audit, config profiles, or worktree helpers. Tests: add test_edit_pr_no_fields_validates_before_auth asserting the no-fields path raises ValueError and calls neither get_auth_header nor api_request (even with auth mocked to None). Existing edit-PR tests unchanged. Full suite passes with no Gitea credentials (287 passed, 0 failures) — the no-fields test no longer depends on the environment. Closes #43. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>