gitLabProjectId

Returns the project ID given a project name using GitLab's REST API

e.g. To get the project ID for the MetaBuild project :

gitLabProjectId( "nickthecoder/metabuild" )

As no credentials are passed, this only works for public projects.


fun gitLabProjectId(domain: String, projectName: String): String

Use this if you have your own instance of gitlab (i.e. for domains other than "gitlab.com").