Sync routes for gitlab-org/gitlab!272186 (GitHub updates restore API)
What does this MR do and why?
Adds the route from gitlab-org/gitlab!272186 (merged) to the route snapshot, so that its cells-routes:router-in-sync job can pass:
/api/:version/projects/:id/import/github/sync/restore(POST, reconnects GitHub updates for a project imported with a personal access token)
No routing change is needed. This is case 1 in Adding GitLab routes to the HTTP Router: the route matches the existing /api/v4/projects/:PROJECT_ID_OR_ROUTE/* rule and claims the project from the path, with the same route claim as the other project-scoped API routes. The endpoint requires authentication.
The change is only the downloaded test/routes/gitlab_routes.json (1 route added) and the updated vitest snapshot (4 rows: plain, .json, dotted, dotted .json). npm run generate-route-guards produced no change.
References
- GitLab merge request that adds the route: gitlab-org/gitlab!272186 (merged)
- Work item: gitlab-org/gitlab#634424 (closed)
- Failing job: https://gitlab.com/gitlab-org/gitlab/-/jobs/18151257564
How to set up and validate locally
- Check out this branch and run
npm ci. - Run
npm run download-gitlab-routes -- 634424-add-ghsync-restore-endpoint. It reports1 added, 0 updatedon this branch's commit, and no further changes. - Run
npm run generate-route-guards.src/generated_route_guards.tsdoes not change. - Run
npm test. All 45 test files and 664 tests pass.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.