skip README.md in content changes table (#34118)
This commit is contained in:
@@ -62,7 +62,9 @@ async function main(owner, repo, baseSHA, headSHA) {
|
|||||||
let markdownTable = ''
|
let markdownTable = ''
|
||||||
|
|
||||||
const pathPrefix = 'content/'
|
const pathPrefix = 'content/'
|
||||||
const articleFiles = files.filter(({ filename }) => filename.startsWith(pathPrefix))
|
const articleFiles = files.filter(
|
||||||
|
({ filename }) => filename.startsWith(pathPrefix) && filename.toLowerCase() !== 'readme.md'
|
||||||
|
)
|
||||||
|
|
||||||
const lines = await Promise.all(
|
const lines = await Promise.all(
|
||||||
articleFiles.map(async (file) => {
|
articleFiles.map(async (file) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user