Features
- API additions for integrations (#476, for #472).
GET /api/repositories/{id}andGET /api/organizations/{id}return a single repository or organization, so a script can watch one mirror without fetching the whole list. When a repository or organization is already tracked, the409fromPOST /api/sync/repositoryandPOST /api/sync/organizationnow includes the stored record, so itsidis there to start a mirror.
Changes
roleis optional onPOST /api/sync/organization. A new organization without one is added asmember, and a forced re-add without one keeps the stored role instead of overwriting it. An unknown role is refused with400. (#476)- A path or method under
/apithat has no endpoint answers with a JSON404that names the method and path, instead of the HTML "Page Not Found" page. (#476) - Adding a user account as an organization still answers
404, and the message now says that user accounts cannot be added as organizations. (#476) - The API docs list the organization endpoints with their status codes, the
hostandpathfields for pasted URLs, and where the ids come from. They also note that everyPOST,PUT,PATCHandDELETEfrom a script needsContent-Type: application/json, even without a body; without it the request is refused with403. (#476)
Security
- astro 7.3.5 in the app and the docs site, for GHSA-mpr7-6m5w-76rw (CSS injection in View Transitions, low). @astrojs/node moves to 11.1.6 with it. (#475)
- The app's own lockfile still had vite 8.0.0 and 8.1.5, inside the October vite advisories that #473 fixed for the docs site only. The app now uses vite 8.1.6 as well. (#475)
No action needed. As always, back up your Gitea before upgrading.
Full Changelog: v3.44.0...v3.45.0