The worker reads the Taça de Portugal calendar and squads from the Joga+ app API when FPF_JOGA_API_KEY and FPF_JOGA_ACCESS_TOKEN are set.
An existing kick-off stays on the teams it already has. A Liga squad is not replaced. An empty FPF team gets the app squad (names and headshots, source lineup). Shirt numbers still come from Liga or the match sheet.
Credentials stay in the server .env. They are not in this pull request.
vitest unit tests for club matching, fixture pick, player names, token refresh, and leaving a stored cup fixture alone
tsc --noEmit for the API package
After merge, confirm /health is the merge commit and the worker log says it is reading the cup
## Summary
- The worker reads the Taça de Portugal calendar and squads from the Joga+ app API when `FPF_JOGA_API_KEY` and `FPF_JOGA_ACCESS_TOKEN` are set.
- An existing kick-off stays on the teams it already has. A Liga squad is not replaced. An empty FPF team gets the app squad (names and headshots, source lineup). Shirt numbers still come from Liga or the match sheet.
- Credentials stay in the server `.env`. They are not in this pull request.
Issue: https://git.bitreport.pt/BitReport.pt/photoreport/issues/287
## Test plan
- [x] `vitest` unit tests for club matching, fixture pick, player names, token refresh, and leaving a stored cup fixture alone
- [x] `tsc --noEmit` for the API package
- [ ] After merge, confirm `/health` is the merge commit and the worker log says it is reading the cup
Cloudflare stops the datacentre from opening resultados.fpf.pt. The app API still returns the calendar and headshots, and a Liga squad is left as Liga published it.
spark
merged commit cd9f0c3882 into main2026-11-20 22:08:47 +00:00
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
FPF_JOGA_API_KEYandFPF_JOGA_ACCESS_TOKENare set..env. They are not in this pull request.Issue: #287
Test plan
vitestunit tests for club matching, fixture pick, player names, token refresh, and leaving a stored cup fixture alonetsc --noEmitfor the API package/healthis the merge commit and the worker log says it is reading the cup