You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ⚠️ DEPRECATED: DEPRECATED: the Phabricator integration with Gitolite code hosts is deprecated
59
-
// This is DEPRECATED
60
-
"phabricator": {
61
-
"callsignCommand": null,
62
-
"url": null
63
-
},
64
-
65
-
// ⚠️ DEPRECATED: DEPRECATED: the Phabricator integration with Gitolite code hosts is deprecated
66
-
// This is DEPRECATED
67
-
"phabricatorMetadataCommand": null,
68
-
69
-
// REQUIRED:
70
-
// Repository name prefix that will map to this Gitolite host. This should likely end with a trailing slash. E.g., "gitolite.example.com/".
71
-
// It is important that the Sourcegraph repository name generated with this prefix be unique to this code host. If different code hosts generate repository names that collide, Sourcegraph's behavior is undefined.
"description": "Configuration for a connection to Gitolite.",
35
+
"allowComments": true,
36
+
"type": "object",
37
+
"additionalProperties": false,
38
+
"required": ["prefix", "host"],
39
+
"properties": {
40
+
"prefix": {
41
+
"description": "Repository name prefix that will map to this Gitolite host. This should likely end with a trailing slash. E.g., \"gitolite.example.com/\".\n\nIt is important that the Sourcegraph repository name generated with this prefix be unique to this code host. If different code hosts generate repository names that collide, Sourcegraph's behavior is undefined.",
"description": "A list of repositories to never mirror from this Gitolite instance. Supports excluding by exact name ({\"name\": \"foo\"}).",
68
+
"type": "array",
69
+
"minItems": 1,
70
+
"items": {
71
+
"type": "object",
72
+
"title": "ExcludedGitoliteRepo",
73
+
"additionalProperties": false,
74
+
"anyOf": [
75
+
{
76
+
"required": ["name"]
77
+
},
78
+
{
79
+
"required": ["pattern"]
80
+
}
81
+
],
82
+
"properties": {
83
+
"name": {
84
+
"description": "The name of a Gitolite repo (\"my-repo\") to exclude from mirroring.",
85
+
"type": "string",
86
+
"minLength": 1
87
+
},
88
+
"pattern": {
89
+
"description": "Regular expression which matches against the name of a Gitolite repo to exclude from mirroring.",
90
+
"type": "string",
91
+
"format": "regex"
92
+
}
93
+
}
94
+
},
95
+
"examples": [
96
+
[
97
+
{
98
+
"name": "myrepo"
99
+
},
100
+
{
101
+
"pattern": ".*secret.*"
102
+
}
103
+
]
104
+
]
105
+
},
106
+
"phabricatorMetadataCommand": {
107
+
"description": "This is DEPRECATED",
108
+
"deprecationMessage": "DEPRECATED: the Phabricator integration with Gitolite code hosts is deprecated",
109
+
"type": "string"
110
+
},
111
+
"phabricator": {
112
+
"description": "This is DEPRECATED",
113
+
"deprecationMessage": "DEPRECATED: the Phabricator integration with Gitolite code hosts is deprecated",
114
+
"type": "object",
115
+
"required": ["url", "callsignCommand"],
116
+
"additionalProperties": false,
117
+
"properties": {
118
+
"url": {
119
+
"description": "URL of the Phabricator instance that integrates with this Gitolite instance. This should be set ",
120
+
"type": "string",
121
+
"format": "uri",
122
+
"!go": {
123
+
"typeName": "NormalizedURL"
124
+
}
125
+
},
126
+
"callsignCommand": {
127
+
"description": " Bash command that prints out the Phabricator callsign for a Gitolite repository. This will be run with environment variable $REPO set to the name of the repository and used to obtain the Phabricator metadata for a Gitolite repository. (Note: this requires `bash` to be installed.)",
0 commit comments