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

How to set up and validate locally

  1. Check out this branch and run npm ci.
  2. Run npm run download-gitlab-routes -- 634424-add-ghsync-restore-endpoint. It reports 1 added, 0 updated on this branch's commit, and no further changes.
  3. Run npm run generate-route-guards. src/generated_route_guards.ts does not change.
  4. 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.

Merge request reports

Loading
Loading