fix: force-fetch repo details so newly enabled features show up

The Anonymize form used the cached RepositoryModel for hasPage,
defaultBranch, etc. — so enabling GitHub Pages (or changing the
default branch) on the source after first cache wouldn't reflect in
the UI, leaving the GitHub Pages checkbox grayed out.

Pass force=1 when loading the form's repo details so the backend
re-queries the GitHub API once. The cost is a single GET /repos/...
call per form load.

Fixes #364.
This commit is contained in:
tdurieux
2026-05-04 11:58:44 +02:00
parent ef78e8ff3c
commit 62a2c1cd5c
2 changed files with 5 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long