MCPcopy
hub / github.com/softprops/action-gh-release / releaseAssetMatchesName

Function releaseAssetMatchesName

src/github.ts:269–272  ·  view source on GitHub ↗
(
  name: string,
  asset: { name: string; label?: string | null },
)

Source from the content-addressed store, hash-verified

267};
268
269const releaseAssetMatchesName = (
270 name: string,
271 asset: { name: string; label?: string | null },
272): boolean => asset.name === name || asset.name === alignAssetName(name) || asset.label === name;
273
274const isReleaseAssetUpdateNotFound = (error: any): boolean => {
275 const errorStatus = error?.status ?? error?.response?.status;

Callers 1

uploadFunction · 0.85

Calls 1

alignAssetNameFunction · 0.90

Tested by

no test coverage detected