Skip to content

Finding Project IDs

Aru Sahni edited this page Jul 7, 2019 · 4 revisions

Specifying a Project ID

For some remotes (only GitLab at the moment), the internal API ID for the repository must be known in order to get MR information. Using the provided API token, git-req will try to look this up on first run. Unfortunately, some on-prem/hosted GitLab installations may be misconfigured and the query may not function as expected. In the event this happens, the project ID can be set manually by executing the following command in the project directory:

git req --set-project-id <PROJECT_ID>

The project ID can be found in the Gitlab UI.

GitLab

GitLab 11.x

  1. Visit the project's main page.
  2. The project ID should be visible below the project's name at the top of the page.

GitLab 10.x

  1. Visit the project's main page.
  2. From the left sidebar, click "Settings".
  3. Click "General".
  4. Expand the "General" section.
  5. The project ID should be visible.
Clone this wiki locally