Skip to content

Commit

Permalink
extend Azure DevOps matching
Browse files Browse the repository at this point in the history
  • Loading branch information
kvart714 committed Mar 29, 2021
1 parent 6ba265e commit 2fa04d8
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions shared/handlers/azure-dev-ops-cloud.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@
"name": "Azure Dev Ops Cloud",
"server": [
{
"pattern": "https:\\/\\/(?:.+@)?dev\\.azure\\.com\\/([^\\/]+)\\/([^\\/]+)\\/_git\\/.+",
"http": "https://dev.azure.com/{{ match[1] }}/{{ match[2] }}/_git",
"ssh": "[email protected]:v3/{{ match[1] }}/{{ match[2] }}"
"pattern": "http(s)?:\\/\\/(?:.+@)?dev\\.azure\\.com\\/([^\\/]+)\\/([^\\/]+)\\/_git\\/.+",
"http": "http{{ match[1] }}://dev.azure.com/{{ match[2] }}/{{ match[3] }}/_git",
"ssh": "[email protected]:v3/{{ match[2] }}/{{ match[3] }}"
},
{
"pattern": "http(s)?:\\/\\/([^\\/]+)\\/tfs\\/([^\\/]+)\\/([^\\/]+)\\/_git\\/.+",
"http": "http{{ match[1] }}://{{ match[2] }}/tfs/{{ match[3] }}/{{ match[4] }}/_git",
"ssh": ""
},
{
"pattern": "http(s)?:\\/\\/tfs\\.([^\\/]+)\\/([^\\/]+)\\/([^\\/]+)\\/_git\\/.+",
"http": "http{{ match[1] }}://tfs.{{ match[2] }}/{{ match[3] }}/{{ match[4] }}/_git",
"ssh": ""
},
{
"pattern": "^(?:git@)?ssh\\.dev\\.azure\\.com:v3\\/([^\\/]+)\\/([^\\/]+)\\/.+$",
Expand Down

0 comments on commit 2fa04d8

Please sign in to comment.