Add category-infer.js with rule-based slug detection for andebol.net (selecao, clubes, competicoes, internacional, resultados, nacional)
Add wp-categories.js to resolve WP category IDs via API or category_map config
Wire resolvePostCategoryIds into both REST and XML-RPC publish paths
Add tools/backfill-wp-categories.js for one-shot backfill of uncategorized posts
Add config/sites/andebol.net.example.json as reference site config template
Persist article tags and category in persist-generated-article.js
Test plan
15 unit tests pass (node --test src/publisher/category-infer.test.js src/publisher/xmlrpc-client.test.js)
Backfill dry-run on andebol LXC
Backfill live run (limit 100)
Verify sample posts no longer show Uncategorised
Paperclip-Issue: BIT-25575
## Summary
- Add `category-infer.js` with rule-based slug detection for andebol.net (selecao, clubes, competicoes, internacional, resultados, nacional)
- Add `wp-categories.js` to resolve WP category IDs via API or `category_map` config
- Wire `resolvePostCategoryIds` into both REST and XML-RPC publish paths
- Add `tools/backfill-wp-categories.js` for one-shot backfill of uncategorized posts
- Add `config/sites/andebol.net.example.json` as reference site config template
- Persist article `tags` and `category` in `persist-generated-article.js`
## Test plan
- [x] 15 unit tests pass (`node --test src/publisher/category-infer.test.js src/publisher/xmlrpc-client.test.js`)
- [ ] Backfill dry-run on andebol LXC
- [ ] Backfill live run (limit 100)
- [ ] Verify sample posts no longer show Uncategorised
Paperclip-Issue: BIT-25575
Add category-infer.js with rule-based slug detection for andebol.net
(selecao, clubes, competicoes, internacional, resultados, nacional).
Add wp-categories.js to resolve WP category IDs via API or category_map.
Wire resolvePostCategoryIds into both REST and XML-RPC publish paths.
Add tools/backfill-wp-categories.js for one-shot backfill of uncategorized posts.
Add config/sites/andebol.net.example.json as reference site config template.
Persist article tags and category in persist-generated-article.js.
Paperclip-Issue: BIT-25575
Paperclip-Agent: Tiago Neves (id 5d084b36-f38f-42a5-a92a-520005afda4f)
Drop hallucinated athlete/team tags and derive Yoast fields only from
published article content. Adds backfill tool for live andebol.net posts.
Co-authored-by: Cursor <[email protected]>
Overrides form-data to >=4.0.6 and undici to >=7.28.0 to resolve high-severity
advisories GHSA-hmw2-7cc7-3qxx (CRLF injection) and GHSA-vmh5-mc38-953g/GHSA-pr7r-676h-xcf6
(TLS bypass + cache disclosure) introduced by the axios transitive dependency.
Paperclip-Task-Id: BIT-25575
Corrects the undici override from >=7.28.0 (which resolved to 8.x) to
^7.28.0. undici 8.x requires Node >=22.19.0, breaking the CI runner on
Node 20. Version 7.28.0 fixes advisories GHSA-vmh5-mc38-953g and
GHSA-pr7r-676h-xcf6 while staying within the Node 20 engine constraint.
Paperclip-Task-Id: BIT-25575
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
category-infer.jswith rule-based slug detection for andebol.net (selecao, clubes, competicoes, internacional, resultados, nacional)wp-categories.jsto resolve WP category IDs via API orcategory_mapconfigresolvePostCategoryIdsinto both REST and XML-RPC publish pathstools/backfill-wp-categories.jsfor one-shot backfill of uncategorized postsconfig/sites/andebol.net.example.jsonas reference site config templatetagsandcategoryinpersist-generated-article.jsTest plan
node --test src/publisher/category-infer.test.js src/publisher/xmlrpc-client.test.js)Paperclip-Issue: BIT-25575
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)