fix: parse API response keys correctly for all commands
Anvil API returns resource-specific JSON keys (e.g. "branches",
"pull_requests", "ci_runs") not a generic "data" wrapper. Updated
all command parsers to try resource-specific keys first, then "data",
then flat parse. Also fixed Branch struct to accept "sha" field via
serde alias.
Verified working against live Anvil instance for branch list, PR list,
CI list, issue list, release list, and repo view.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
SHA:
6f41f8e660a56b309339422198e69ce8c01a8c30
Author:
Cole Christensen <cole.christensen@macmillan.com>
Date:
2026-03-11 02:44
Parents:
54545c1
8 files changed
+83
-37
| Type | ||
|---|---|---|
|
|
src/commands/agent.rs | +18 −7 |
|
||
|
|
src/commands/branch.rs | +5 −2 |
|
||
|
|
src/commands/ci.rs | +10 −5 |
|
||
|
|
src/commands/deploy.rs | +8 −4 |
|
||
|
|
src/commands/issue.rs | +10 −5 |
|
||
|
|
src/commands/pr.rs | +10 −5 |
|
||
|
|
src/commands/release.rs | +8 −4 |
|
||
|
|
src/commands/runner.rs | +14 −5 |
|
||