MCPcopy Index your code
hub / github.com/gitify-app/gitify / transformRepository

Function transformRepository

src/renderer/utils/api/transform.ts:85–94  ·  view source on GitHub ↗
(
  raw: RawGitHubNotification['repository'],
)

Source from the content-addressed store, hash-verified

83}
84
85function transformRepository(
86 raw: RawGitHubNotification['repository'],
87): GitifyRepository {
88 return {
89 name: raw.name,
90 fullName: raw.full_name,
91 htmlUrl: raw.html_url as Link,
92 owner: transformOwner(raw.owner),
93 };
94}
95
96function transformOwner(
97 raw: NonNullable<RawGitHubNotification['repository']['owner']>,

Callers 1

transformNotificationFunction · 0.85

Calls 1

transformOwnerFunction · 0.85

Tested by

no test coverage detected