Feature/implement inspectorat so crawler#367
Merged
vbuch merged 3 commits intovbuch:mainfrom Apr 7, 2026
Merged
Conversation
|
@IvelinaKostadinova is attempting to deploy a commit to the Valery Buchinsky's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new “Столичен инспекторат” source end-to-end (shared source catalog + ingest crawler + deployment config), so the ingest pipeline can crawl and persist inspectorat-so.org news and the web UI can display it as a supported source.
Changes:
- Register new source metadata (
inspectorat-so-org) and expose it via@oboapp/sharedpublic exports. - Add an Inspectorat crawler (selectors, extractors, date parsing, crawl entrypoint) with unit tests.
- Wire the crawler into ingest Cloud Run jobs via Terraform and set trust defaults; add source logo asset.
Reviewed changes
Copilot reviewed 11 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| web/public/sources/inspectorat-so-org.png | Adds logo asset for the new source. |
| shared/src/sources.ts | Registers inspectorat-so-org in the shared sources list. |
| shared/src/index.ts | Re-exports sources from the shared package entrypoint. |
| ingest/terraform/main.tf | Adds Cloud Run job config for the new crawler. |
| ingest/lib/source-trust.ts | Adds trust/geometry defaults for inspectorat-so-org. |
| ingest/crawlers/inspectorat-so-org/types.ts | Defines crawler document typing and sourceType. |
| ingest/crawlers/inspectorat-so-org/tsconfig.json | Crawler-local TS config consistent with other crawlers. |
| ingest/crawlers/inspectorat-so-org/selectors.ts | CSS selectors for index/post scraping. |
| ingest/crawlers/inspectorat-so-org/extractors.ts | Link + post detail extraction using shared utilities. |
| ingest/crawlers/inspectorat-so-org/index.ts | Crawler entrypoint, crawl wiring, and date parsing logic. |
| ingest/crawlers/inspectorat-so-org/index.test.ts | Tests crawl wiring and date parsing year inference. |
| ingest/crawlers/inspectorat-so-org/extractors.test.ts | Tests link filtering/deduping and post detail extraction wrapper. |
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.
No description provided.