feat(server): add yt server version for the server version #137
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/YT-82-server-version"
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?
yt version show/check/updateanswers for theytbinary; nothing asked YouTrack what version it runs, so a feature gated on a server version (the 2026.1 project team endpoints, for one) had no way to detect the server it talks to.yt server versionprints one line (YouTrack 2026.2 (build 17765) at https://example.youtrack.cloud) and--jsonemits{"version":"...","build":"..."}. It lives under a newservernamespace rather thanversionbecauseversiondescribes the binary and its self-update train, and the server is a separate subject.The client side is
youtrack_client::api::get_server_config, readingGET /api/config?fields=version,build. That endpoint is absent from the published REST reference (resource-api-config.html404s) but documented by JetBrains support and available since YouTrack 2018.1, so its request/response shape and the 2026-08-01 live verification are recorded in a comment next to the function, the same convention thevcsIntegrationSettingsandcommands/assistwrappers use. Both fields deserialize as optional strings so a server that omits one still reports what it has instead of hard-failing.#YT-82
yt server versionfor the server version