(data: string, path: string, newFile: boolean)
| 1059 | ); |
| 1060 | |
| 1061 | const formatData = (data: string, path: string, newFile: boolean) => { |
| 1062 | const entry = createEntry(collection.get('name'), slug, path, { |
| 1063 | raw: data, |
| 1064 | isModification: !newFile, |
| 1065 | label: collection && selectFileEntryLabel(collection, slug), |
| 1066 | mediaFiles, |
| 1067 | updatedOn: entryData.updatedAt, |
| 1068 | author: entryData.pullRequestAuthor, |
| 1069 | status: entryData.status, |
| 1070 | meta: { path: prepareMetaPath(path, collection) }, |
| 1071 | }); |
| 1072 | |
| 1073 | const entryWithFormat = this.entryWithFormat(collection)(entry); |
| 1074 | return entryWithFormat; |
| 1075 | }; |
| 1076 | |
| 1077 | const readAndFormatDataFile = async (dataFile: UnpublishedEntryDiff) => { |
| 1078 | const data = await this.implementation.unpublishedEntryDataFile( |
nothing calls this directly
no test coverage detected