MCPcopy Create free account
hub / github.com/EdgeTX/buddy / encodePrVersion

Function encodePrVersion

src/shared/tools.ts:63–66  ·  view source on GitHub ↗
(values: PrVersion)

Source from the content-addressed store, hash-verified

61 };
62};
63export const encodePrVersion = (values: PrVersion): string | undefined =>
64 values.prId
65 ? `pr-${values.prId}${values.commitId ? `@${values.commitId}` : ""}`
66 : undefined;
67
68export const uniqueBy = <T extends Record<string, unknown>>(
69 objList: T[],

Callers 8

FirmwarePrBuildPickerFunction · 0.90
prSelectedFunction · 0.90
commitSelectedFunction · 0.90
targetNotAvailableFunction · 0.90
targetSelectedFunction · 0.90
withPrBuildFirmwareFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected