fj/src/api
Stephen Way eb716ee588
fix: -R works on repo positional commands, null-array deserialization, list endpoint normalization
* `fj repo branches`, `repo topics`, `repo edit`, `repo fork`, `repo sync`,
  `repo archive`, `repo unarchive`, `repo mirror-sync` previously took only
  a positional `repo` argument and rejected `-R/--repo`. Now they accept
  both, with `-R` winning when both are given.
* Forgejo returns `null` for `labels`/`assignees` on issues and PRs when
  empty. The Issue/Pull structs hit `expected a sequence` on every issue
  create. Added a `deserialize_null_to_default` helper on the affected
  fields so null is now coerced to an empty Vec.
* `get_page` similarly bailed when a list endpoint returned a bare `null`
  body. Now treats null and empty body as `[]`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 08:41:57 -07:00
..
hook.rs expand: auth token/refresh/setup-git, protect, hook, --debug, man pages 2026-05-13 08:34:01 -07:00
issue.rs fix: -R works on repo positional commands, null-array deserialization, list endpoint normalization 2026-05-13 08:41:57 -07:00
label.rs batch: release, label, workflow, search, browse, status, org, keys, alias, config, extension, gist 2026-05-13 08:29:31 -07:00
mod.rs fix: -R works on repo positional commands, null-array deserialization, list endpoint normalization 2026-05-13 08:41:57 -07:00
notification.rs batch: release, label, workflow, search, browse, status, org, keys, alias, config, extension, gist 2026-05-13 08:29:31 -07:00
org.rs batch: release, label, workflow, search, browse, status, org, keys, alias, config, extension, gist 2026-05-13 08:29:31 -07:00
protect.rs expand: auth token/refresh/setup-git, protect, hook, --debug, man pages 2026-05-13 08:34:01 -07:00
pull.rs fix: -R works on repo positional commands, null-array deserialization, list endpoint normalization 2026-05-13 08:41:57 -07:00
release.rs batch: release, label, workflow, search, browse, status, org, keys, alias, config, extension, gist 2026-05-13 08:29:31 -07:00
repo.rs expand: mirror, auto-pagination beyond 50, retry-on-5xx, branch protection rules 2026-05-13 08:37:20 -07:00
search.rs batch: release, label, workflow, search, browse, status, org, keys, alias, config, extension, gist 2026-05-13 08:29:31 -07:00
serde_util.rs fix: -R works on repo positional commands, null-array deserialization, list endpoint normalization 2026-05-13 08:41:57 -07:00
user.rs expand: repo auto-detect, --web, editor, PR diff/checks/ready/review/status, repo lifecycle, api headers/paginate 2026-05-13 08:22:40 -07:00
workflow.rs batch: release, label, workflow, search, browse, status, org, keys, alias, config, extension, gist 2026-05-13 08:29:31 -07:00