perf(gatsby-telemetry): Memoize the getRepositoryId (#20472)
perf(gatsby-telemetry): Memoize the getRepositoryId (#20472)

* Memoize the getRepositoryId

* chore: format

* make use of memoized function

Co-authored-by: gatsbybot <313a651c59fdaade90d152972001707d94b0975c@gmail.com>
Co-authored-by: Michal Piechowiak <9f3259e2eef1b9102300663eaa080e26c8e9c01f@gmail.com>
gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby