(diff: GitHubCompareFile)
| 1017 | |
| 1018 | // async since it is overridden in a child class |
| 1019 | async diffFromFile(diff: GitHubCompareFile): Promise<Diff> { |
| 1020 | return { |
| 1021 | path: diff.filename, |
| 1022 | newFile: diff.status === 'added', |
| 1023 | sha: diff.sha || '', |
| 1024 | // media files diffs don't have a patch attribute, except svg files |
| 1025 | // renamed files don't have a patch attribute too |
| 1026 | binary: (diff.status !== 'renamed' && !diff.patch) || diff.filename.endsWith('.svg'), |
| 1027 | }; |
| 1028 | } |
| 1029 | |
| 1030 | async editorialWorkflowGit( |
| 1031 | files: TreeFile[], |
no outgoing calls
no test coverage detected