(commit: CommitFragment)
| 46 | } |
| 47 | |
| 48 | function 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 | |
| 60 | function transformGQLCategory(category: CategoryFragment): CategoryConfig { |
| 61 | return { |
no outgoing calls
no test coverage detected