Skip to content

Commit e81deb4

Browse files
authored
docs-util: fix freshness check script (#11737)
* docs-util: fix freshness check script * Update freshness-check.ts
1 parent af613bb commit e81deb4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

www/utils/packages/scripts/freshness-check.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ async function main() {
109109
const documentationTeam = await linearClient.teams({
110110
filter: {
111111
name: {
112-
eqIgnoreCase: "Documentation",
112+
eqIgnoreCase: "DX",
113113
},
114114
},
115115
first: 1,
116116
})
117117

118118
if (!documentationTeam.nodes.length) {
119-
console.log("Please add Documentation team in Linear first then try again")
119+
console.log("Please add DX team in Linear first then try again")
120120
process.exit(1)
121121
}
122122

@@ -138,7 +138,7 @@ async function main() {
138138

139139
if (!freshnessCheckLabel.nodes.length) {
140140
console.log(
141-
"Please add freshness check label in Linear under the documentation team first then try again"
141+
"Please add freshness check label in Linear under the DX team first then try again"
142142
)
143143
process.exit(1)
144144
}
@@ -151,6 +151,12 @@ async function main() {
151151
await scanDirectory(
152152
path.join(__dirname, "..", "..", "..", "..", "apps", "resources", "app")
153153
)
154+
await scanDirectory(
155+
path.join(__dirname, "..", "..", "..", "..", "apps", "user-guide", "app")
156+
)
157+
await scanDirectory(
158+
path.join(__dirname, "..", "..", "..", "..", "apps", "ui", "src", "content", "docs")
159+
)
154160
}
155161

156162
function getMonthDifference(startDate: Date, endDate: Date) {

0 commit comments

Comments
 (0)