Skip to content

Commit

Permalink
Add support using Gitlab's numerical project ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuschl committed Aug 12, 2020
1 parent b5b0ee9 commit 61e125f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gitlab-manager
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 61e125f

Please sign in to comment.