feat(project): add yt project vcs (YT-7) #50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/project-vcs-YT-7"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
yt project vcs <SHORT_NAME>for listing the VCS integration processors configured on a project (server URL, repo path, enabled flag, processor$type).--enabled-onlyfilters disabled rows;--jsonemits a stable record shape; an empty integration set returns an empty list rather than an error.claude-botYouTrack action needs the repo URL for an issue to clone the project; today consumers reach into the REST API directly. A dedicated subcommand keepsyt project showcheap.Closes YT-7.
Test plan
yt project vcs YTlists the Gitea processor with server URLhttps://dev.a8n.run.yt project vcs YT --jsonround-trips the$type,enabled,path, andserverUrlfields.yt project vcs <project-with-no-integration>prints an empty result and exits 0.Adds `yt project vcs <SHORT_NAME>` to list the VCS integration processors configured on a project. Hits `/api/admin/projects/<id>?fields=plugins(vcsIntegrationSettings(processors(...)))` and flattens the nested `server { url }` into a single `server_url` per row. `--enabled-only` filters out disabled processors; `--json` emits the raw decoded list (keeps the `$type` discriminator so consumers can match on GitHub / GitLab / Gitea). Driver: claude-bot needs the repo URL for an issue so it can clone the project; today every consumer hits the YouTrack REST API directly and reimplements the field selection. A dedicated subcommand keeps `yt project show` cheap and gives callers a stable shape to script against. Empty integration sets return an empty list rather than an error. #YT-7 State Done