docs-util: fix freshness check script (#11737)

* docs-util: fix freshness check script

* Update freshness-check.ts
This commit is contained in:
Shahed Nasser
2025-03-05 13:35:28 +02:00
committed by GitHub
parent af613bbc4e
commit e81deb49f8
@@ -109,14 +109,14 @@ async function main() {
const documentationTeam = await linearClient.teams({ const documentationTeam = await linearClient.teams({
filter: { filter: {
name: { name: {
eqIgnoreCase: "Documentation", eqIgnoreCase: "DX",
}, },
}, },
first: 1, first: 1,
}) })
if (!documentationTeam.nodes.length) { if (!documentationTeam.nodes.length) {
console.log("Please add Documentation team in Linear first then try again") console.log("Please add DX team in Linear first then try again")
process.exit(1) process.exit(1)
} }
@@ -138,7 +138,7 @@ async function main() {
if (!freshnessCheckLabel.nodes.length) { if (!freshnessCheckLabel.nodes.length) {
console.log( console.log(
"Please add freshness check label in Linear under the documentation team first then try again" "Please add freshness check label in Linear under the DX team first then try again"
) )
process.exit(1) process.exit(1)
} }
@@ -151,6 +151,12 @@ async function main() {
await scanDirectory( await scanDirectory(
path.join(__dirname, "..", "..", "..", "..", "apps", "resources", "app") path.join(__dirname, "..", "..", "..", "..", "apps", "resources", "app")
) )
await scanDirectory(
path.join(__dirname, "..", "..", "..", "..", "apps", "user-guide", "app")
)
await scanDirectory(
path.join(__dirname, "..", "..", "..", "..", "apps", "ui", "src", "content", "docs")
)
} }
function getMonthDifference(startDate: Date, endDate: Date) { function getMonthDifference(startDate: Date, endDate: Date) {