MCPcopy Create free account
hub / github.com/code-pushup/cli / transformGQLCommit

Function transformGQLCommit

packages/ci/src/lib/portal/transform.ts:48–58  ·  view source on GitHub ↗
(commit: CommitFragment)

Source from the content-addressed store, hash-verified

46}
47
48function transformGQLCommit(commit: CommitFragment): Commit {
49 return {
50 hash: commit.sha,
51 message: commit.message,
52 // TODO: make commit author and date required in Portal API?
53 author: commit.author
54 ? `${commit.author.name} <${commit.author.email}>`
55 : 'unknown',
56 date: commit.date ? new Date(commit.date) : new Date(),
57 };
58}
59
60function transformGQLCategory(category: CategoryFragment): CategoryConfig {
61 return {

Callers 1

transformGQLReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected