chore: sync national chapters from live API - #1091
Merged
Merged
Conversation
Add pnpm sync:national-chapters, a script that reconciles src/routes/communities/national-chapters.json against https://pauseai.info/api/national-groups. - Merges non-invasively: updates links in place for existing chapters, appends new countries at the end, preserves file order - Geocodes only new countries via Nominatim - NAME_OVERRIDES pins 'Czech Republic' to 'Czechia' so local Czech groups stay grouped under the chapter - Excludes United States (removed in #1056); --allow re-adds - --check exits 1 on drift, --dry-run prints without writing - Daily GitHub Actions workflow opens a PR on the sync-national-chapters branch when the script writes changes Refreshes the JSON: 15 -> 19 chapters, 4 stale links updated (Germany, Italy, Poland, Romania), Belgium/Ghana/Ireland/ Switzerland appended.
✅ Deploy Preview for pauseai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Wituareard
force-pushed
the
agents/sync-national-chapters-with-api
branch
from
September 8, 2026 19:04
9bc77aa to
f9abb25
Compare
Wituareard
enabled auto-merge (squash)
September 8, 2026 19:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adds
pnpm sync:national-chapters, a script that reconciles national-chapters.json against the live API athttps://pauseai.info/api/national-groups(the same data source the/communitiespage endpoint proxies), plus a scheduled GitHub Actions workflow that opens a PR when they drift.What changed
NAME_OVERRIDESpinsCzech Republic→Czechiaso local Czech groups inpauseai-communities.jsonstay grouped under the chapter (they match viaparent_name.includes(chapter.name)).EXCLUDED_COUNTRIES:United Statesstays out (removed in Remove PauseAI US communities from the communities page #1056);--allow "United States"re-adds.--check(exit 1 on drift, no writes),--dry-run(print without writing).peter-evans/create-pull-request@v8can commit any diff to thesync-national-chaptersbranch as a reviewable PR (no-op when in sync). No secrets required.sync:national-chaptersscript.$$WHATSAPP_ITALY$$resolved, Poland, Romania); Belgium, Ghana, Ireland, Switzerland appended (these live groups have no platform links yet, somailto:is faithful to the API — future Airtable link updates flow through automatically on the next run).Validation
--checkexits 0 in sync / 1 on drift (verified with a mutated link);--dry-runnon-destructive; plain run regenerates correctly.pnpm check: 0 errors (only pre-existing svelte warnings).pnpm lint: passes (only pre-existing LanguageSwitcher warnings).pnpm test: 51/51 pass.Notes for reviewers
pnpm sync:national-chapters -- --dry-runto preview.