feat(vcs): expose repository branch metadata
This commit is contained in:
parent
704e9ff3fb
commit
305466e5ef
8 changed files with 48 additions and 3 deletions
|
|
@ -13,6 +13,20 @@ const DiffQuery = Schema.Struct({
|
|||
})
|
||||
|
||||
export const VcsGroup = HttpApiGroup.make("server.vcs")
|
||||
.add(
|
||||
HttpApiEndpoint.get("vcs.get", "/api/vcs", {
|
||||
query: LocationQuery,
|
||||
success: Location.response(Vcs.Info),
|
||||
})
|
||||
.annotateMerge(locationQueryOpenApi)
|
||||
.annotateMerge(
|
||||
OpenApi.annotations({
|
||||
identifier: "v2.vcs.get",
|
||||
summary: "VCS information",
|
||||
description: "Get the current and default branches for the requested location.",
|
||||
}),
|
||||
),
|
||||
)
|
||||
.add(
|
||||
HttpApiEndpoint.get("vcs.status", "/api/vcs/status", {
|
||||
query: LocationQuery,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue