We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1802cc5 commit 42f2286Copy full SHA for 42f2286
giturlparse/platforms/gitlab.py
@@ -0,0 +1,19 @@
1
+# Imports
2
+from .base import BasePlatform
3
+
4
5
+class GitLabPlatform(BasePlatform):
6
+ PATTERNS = {
7
+ 'https': r'https://(?P<domain>.+)/(?P<owner>.+)/(?P<repo>.+).git',
8
+ 'ssh': r'git@(?P<domain>.+):(?P<owner>.+)/(?P<repo>.+).git',
9
+ 'git': r'git://(?P<domain>.+)/(?P<owner>.+)/(?P<repo>.+).git',
10
+ }
11
+ FORMATS = {
12
+ 'https': r'https://%(domain)s/%(owner)s/%(repo)s.git',
13
+ 'ssh': r'git@%(domain)s:%(owner)s/%(repo)s.git',
14
+ 'git': r'git://%(domain)s/%(owner)s/%(repo)s.git'
15
16
+ DEFAULTS = {
17
+ '_user': 'git'
18
19
0 commit comments