Skip to content

Releases: rioliu/zentao-cli-go

v0.10.0: task subtasks

Choose a tag to compare

@rioliu rioliu released this 13 Oct 07:21
e6d5632

zentao task create/update --parent N: create subtasks under a parent task. The parent field is undeclared in the upstream spec but persisted by the server (isParent flag maintenance included) - pinned by contract and e2e tests against 22.4.

v0.9.0: project/execution/metric commands

Choose a tag to compare

@rioliu rioliu released this 10 Oct 08:40
561c686

New commands closing the API gaps from the AI审读 setup session:

  • zentao project create|get|list|link-story|unlink-story - project workflow; --product mandatory on create (prevents the server's auto-product path); link/unlink verified by read-back, reports silently skipped stories
  • zentao execution create - sprint under a project (no default sprint/story links via API)
  • zentao story link|unlink --with ... - keeps the linkStories field AND the relation rows in sync (either alone is half a link)
  • zentao task move|delete - move repairs two server bugs: restores a zeroed task.story, warns on the stale task.project
  • zentao metric update-dashboard|update-lib - manual metric recompute for installs without a scheduler
  • fix: product list pagination hint never fired (pager fields are nested)

Specs:9 new rules in specs/overrides.yaml + contract/gaps_test.go pins; regression green against live 22.4.

v0.8.0: story --parent

Choose a tag to compare

@rioliu rioliu released this 08 Oct 09:16
4735e30

Adds --parent N to zentao story create and zentao story update for child stories (requirement breakdown).

zentao story create --product 1 --title 'Parent requirement' --spec ... --reviewer admin
zentao story create --product 1 --title 'Child story' --parent 14 --reviewer admin
  • parent (父需求) in the request body; productID stays in the query
  • omitted flag → field absent (root story), works on create and update
  • pinned by unit + contract (TestStoryChild_ParentPersisted, live 22.4) + e2e (TestE2E_StoryCreateChild); make regression green

PR: #6

v0.7.0: story update --status

Choose a tag to compare

@rioliu rioliu released this 08 Oct 07:56
b68da05

Adds --status to zentao story update: raw status write (draft|reviewing|active|changing|closed), validated client-side.

  • Server persists the field on PUT /stories/ (edit form carries status although the REST spec omits it - same pass-through as spec/verify)
  • For active/closed prefer story activate / story close: they record history and handle close reason/stage
  • Unit + contract pins; make regression green against 22.4 testenv

v0.6.1: comment list remarks

Choose a tag to compare

@rioliu rioliu released this 08 Oct 04:29
fa4a550

Fixes

  • zentao comment list now returns every action-stream entry carrying comment text, not only action=commented - task finish notes (action=finished) and close remarks are no longer invisible
  • output gains an action key: [{"id": N, "action": "finished|commented|...", "comment": "<html>"}]
  • e2e: isolate HOME in the "missing env config" usage test (was resolving the developer's real profile)

v0.6.0: token login

Choose a tag to compare

@rioliu rioliu released this 08 Oct 02:01
62dae9e

Token-based auth

  • zentao token [--fresh] prints an authorized REST API token (warm-cache reuse; renews via password when dead)
  • zentao login --token TOKEN adopts an externally obtained token: verified server-side, stored in the session cache (0600)
  • ZENTAO_TOKEN env supplies the token for any command and outranks the session cache
  • clear errors for token-only setups: expired token without password, and comment (web realm) access which still requires a password

v0.5.0: product interface

Choose a tag to compare

@rioliu rioliu released this 08 Oct 01:03
e44915e
  • zentao product list [--page N] [--json] - discover product IDs for --product on story/bug create
  • zentao product get <id> - full product object as JSON
  • docs: README guide, command reference, bundled agent skill

v0.4.0: list command

Choose a tag to compare

@rioliu rioliu released this 05 Oct 12:21

zentao story|task|bug list [--mine|--product|--execution|--project] [--page] [--json]. Scoped routes only (the bare list routes are unusable server-side). Default scope: my open work.

v0.3.0: the development loop

Choose a tag to compare

@rioliu rioliu released this 05 Oct 12:09

Task and bug workflows complete the dev loop: story > task > bug with comments everywhere. Task start/finish/close/activate (with the 'left' field quirk guarded), bug resolve/confirm/close/activate (resolvedBuild-as-string, state-dependent openedBuild handled).

v0.2.1: bug comments pinned

Choose a tag to compare

@rioliu rioliu released this 05 Oct 11:41

Bug comments work through the generic route (the official CLI's known issue - the bugs/confirm workaround is obsolete). Round-trip coverage in contract and e2e rings.