From c4507dbeb685b6dfc6a3e3bd9f65dbf444e9c06e Mon Sep 17 00:00:00 2001 From: Tuschl Date: Wed, 12 Aug 2020 12:10:15 +0200 Subject: [PATCH] Add support using Gitlab's numerical project ID --- gitlab-manager | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitlab-manager b/gitlab-manager index 4e56e8f..95a06a3 100755 --- a/gitlab-manager +++ b/gitlab-manager @@ -126,7 +126,10 @@ if __name__ == '__main__': print(e) exit() try: - projects = gl.projects.list(search=args.project) + if args.project.isdecimal(): + projects = [gl.projects.get(args.project)] + else: + projects = gl.projects.list(search=args.project) except exceptions.MissingSchema: log.error("Error with the URL defined") exit()