How does one find out one’s own Repo ID?

If, like me, you were after the GitHub repository ID (as in – the number identifying the repo – not its name), then I found an easy way to do this via the metadata element on the main page of the repository on GitHub:

  1. View the page source (Right Click > View Page Source in Chrome or Firefox for example)
  2. Search the page source and look for octolytics-dimension-repository_id. You should find something that looks like:

    <meta content="123456789" name="octolytics-dimension-repository_id" />

In this example, the ID of the repository is 123456789.

Leave a Comment