1
0
mirror of synced 2025-12-30 12:02:01 -05:00

Merge pull request #20799 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2022-09-23 14:23:37 -04:00
committed by GitHub

View File

@@ -16,7 +16,7 @@ import fm from '../../lib/frontmatter.js'
import matter from 'gray-matter'
import chalk from 'chalk'
import yaml from 'js-yaml'
import ghesReleaseNotesSchema from '../../tests/helpers/schemas/ghes-release-notes-schema.js'
import releaseNotesSchema from '../../tests/helpers/schemas/release-notes-schema.js'
import revalidator from 'revalidator'
main()
@@ -66,7 +66,7 @@ async function main() {
// find the corresponding english file by removing the first 2 path segments: /translation/<language code>
const engAbsPath = relPath.split(path.sep).slice(2).join(path.sep)
const localisedResult = await loadAndValidateContent(relPath, ghesReleaseNotesSchema)
const localisedResult = await loadAndValidateContent(relPath, releaseNotesSchema)
if (!localisedResult) continue
const { data, errors, content } = localisedResult