release: make project categories knowledge-wide

This commit is contained in:
public-repo-gate
2026-09-12 17:21:34 +03:00
parent c2209edb5b
commit 436c08e521
7 changed files with 1052 additions and 1051 deletions
+4 -4
View File
@@ -254,12 +254,12 @@ function checkSpec(text, slugs, changedSince = false) {
reasons.push('subject: отсутствует (обязателен для новой/измененной ноты)')
}
// project_categories: future-routing layer. New notes must say not only
// which live project they help, but what category of future project should
// rediscover this atom during bootstrap.
// project_categories: future-routing layer for every knowledge note. New
// notes must say not only which live project they help, but what category
// of future project should rediscover this knowledge during bootstrap.
const projectCategories = values(data.project_categories)
if (changedSince && !projectCategories.length) {
reasons.push('project_categories: отсутствует или пуст (обязателен для новой/измененной ноты)')
reasons.push('project_categories: отсутствует или пуст (обязателен для любой новой/измененной ноты)')
}
const unknownCategories = unknownProjectCategories(projectCategories)
if (unknownCategories.length) {