fix: avoid GET /projects/:id in changelog generate to support CI job tokens

What does this MR do and why?

glab changelog generate was calling GET /projects/:id to resolve the numeric project ID before calling the changelog API. This endpoint is not in the CI job token allowlist, causing a 404 for users running the command in CI pipelines with a job token.

Since GenerateChangelogData already accepts pid any (either a numeric ID or a namespace/project path string), we can pass the repo path directly and skip the project lookup entirely.

MR acceptance checklist

  • This MR does not have a documentation impact
  • Tests added/updated

Closes #8244 (closed)

Merge request reports

Loading