From d2a4774cb4f37dd8e9f66c8321fba4d3b622b1d7 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang Date: Tue, 19 Mar 2024 18:41:58 +0400 Subject: [PATCH] update stability text if there are multiple groups --- lib/rules/sotd/stability.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/rules/sotd/stability.js b/lib/rules/sotd/stability.js index 596208be3..1ad26f541 100644 --- a/lib/rules/sotd/stability.js +++ b/lib/rules/sotd/stability.js @@ -28,17 +28,21 @@ function findSW(candidates, sr) { 'A W3C Registry is a specification that, after extensive consensus-building, is endorsed by W3C and its Members.'; } else { const { crType } = sr.config; - const INTRO_S = - ' A Candidate Recommendation Snapshot has received wide review, is intended to gather implementation experience, and has commitments from Working Group members to royalty-free licensing for implementations.'; - const INTRO_D = - ' A Candidate Recommendation Draft integrates changes from the previous Candidate Recommendation that the Working Group intends to include in a subsequent Candidate Recommendation Snapshot.'; + const groupIds = sr.getDelivererIDs(); + const INTRO_S = ` A Candidate Recommendation Snapshot has received wide review, is intended to gather implementation experience, and has commitments from Working Group${ + groupIds.length > 1 ? 's' : '' + } members to royalty-free licensing for implementations.`; + const INTRO_D = ` A Candidate Recommendation Draft integrates changes from the previous Candidate Recommendation that the Working Group${ + groupIds.length > 1 ? 's intend' : ' intends' + } to include in a subsequent Candidate Recommendation Snapshot.`; const CR_INTRO = crType === 'Draft' ? INTRO_D : INTRO_S; const { cryType } = sr.config; const INTRO_CRY = ' A Candidate Registry Snapshot has received wide review.'; - const INTRO_CRYD = - ' A Candidate Registry Draft integrates changes from the previous Candidate Registry that the Working Group intends to include in a subsequent Candidate Registry Snapshot.'; + const INTRO_CRYD = ` A Candidate Registry Draft integrates changes from the previous Candidate Registry that the Working Group${ + groupIds.length > 1 ? 's intend' : ' intends' + } to include in a subsequent Candidate Registry Snapshot.`; const CRY_INTRO = cryType === 'Draft' ? INTRO_CRYD : INTRO_CRY; sw = null; const article =