Get a project id by name

gl_get_project_id(project_name, ...)

Arguments

project_name

project name

...

passed on to gitlab()

Value

Integer. ID of the project if found.

Details

Number of pages searched is limited to (per_page =) 20 * (max_page =) 10 by default. If the project_name is an old project lost in a big repository (position > 200), gl_get_project_id() may not find the project id.

Examples

if (FALSE) {
gl_get_project_id("<<your-project-name>>")
}