Skip to content

fix(check-added): share latestAllowedDate one-day UTC slack rule - #368

Open
s1reyash wants to merge 1 commit into
TMHSDigital:mainfrom
s1reyash:fix/check-added-utc-slack
Open

s1reyash wants to merge 1 commit into
TMHSDigital:mainfrom
s1reyash:fix/check-added-utc-slack

Conversation

@s1reyash

@s1reyash s1reyash commented Dec 4, 2026

Copy link
Copy Markdown

Closes #339

Updates lateAddedDates in site/lib/added-dates.mjs to use latestAllowedDate(Date.parse(${first}T00:00:00Z)) from site/lib/shared.mjs, so check-added and validate apply the same one-day UTC slack rule for contributors east of UTC.

Adds regression tests in site/lib/lib.test.mjs covering an added date one day after (passes) and two days after (fails) the first commit's UTC date.

Verified with npm run check (lint, 277 + 1910 test assertions, validate, and build all passed).

@s1reyash
s1reyash requested a review from TMHSDigital as a code owner December 4, 2026 18:15

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check-added fails an added date that validate accepts for contributors east of UTC

1 participant