@@ -78,30 +78,62 @@ The Sourcegraph instance's site admin must [update the `corsOrigin` site config
7878### admin/code_hosts/phabricator.schema.json
7979
8080{ /* SCHEMA_SYNC_START: admin/code_hosts/phabricator.schema.json */ }
81- { /* WARNING: This section is auto-generated during releases. Do not edit manually. */ }
82- { /* Last updated: 2025-07-10T00:07:34Z via sourcegraph/[email protected] */ } 8381``` json
8482{
85- // SSH cipher to use when cloning via SSH. Must be a valid choice from `ssh -Q cipher`.
86- "gitSSHCipher" : null ,
87-
88- // SSH keys to use when cloning Git repo.
89- "gitSSHCredential" : null ,
90-
91- // The type of Git URLs to use for cloning and fetching Git repositories.
92- // Valid options: "http", "ssh"
93- "gitURLType" : " http" ,
94-
95- // The list of repositories available on Phabricator.
96- "repos" : null ,
97-
98- // API token for the Phabricator instance.
99- "token" : null ,
100-
101- // URL of a Phabricator instance, such as https://phabricator.example.com
102- // Other example values:
103- // - "https://phabricator.example.com"
104- "url" : null
83+ "$schema" : " http://json-schema.org/draft-07/schema#" ,
84+ "$id" : " phabricator.schema.json#" ,
85+ "title" : " PhabricatorConnection" ,
86+ "description" : " Configuration for a connection to Phabricator." ,
87+ "allowComments" : true ,
88+ "type" : " object" ,
89+ "additionalProperties" : false ,
90+ "anyOf" : [{ "required" : [" token" ] }, { "required" : [" repos" ] }],
91+ "properties" : {
92+ "url" : {
93+ "description" : " URL of a Phabricator instance, such as https://phabricator.example.com" ,
94+ "type" : " string" ,
95+ "examples" : [" https://phabricator.example.com" ]
96+ },
97+ "token" : {
98+ "description" : " API token for the Phabricator instance." ,
99+ "type" : " string" ,
100+ "minLength" : 1
101+ },
102+ "repos" : {
103+ "description" : " The list of repositories available on Phabricator." ,
104+ "type" : " array" ,
105+ "minItems" : 1 ,
106+ "items" : {
107+ "type" : " object" ,
108+ "additionalProperties" : false ,
109+ "required" : [" path" , " callsign" ],
110+ "properties" : {
111+ "path" : {
112+ "description" : " Display path for the url e.g. gitolite/my/repo" ,
113+ "type" : " string"
114+ },
115+ "callsign" : {
116+ "description" : " The unique Phabricator identifier for the repository, like 'MUX'." ,
117+ "type" : " string"
118+ }
119+ }
120+ }
121+ },
122+ "gitURLType" : {
123+ "description" : " The type of Git URLs to use for cloning and fetching Git repositories." ,
124+ "type" : " string" ,
125+ "enum" : [" http" , " ssh" ],
126+ "default" : " http"
127+ },
128+ "gitSSHCredential" : {
129+ "description" : " SSH keys to use when cloning Git repo." ,
130+ "$ref" : " git.schema.json#/definitions/gitSSHCredential"
131+ },
132+ "gitSSHCipher" : {
133+ "description" : " SSH cipher to use when cloning via SSH. Must be a valid choice from `ssh -Q cipher`." ,
134+ "$ref" : " git.schema.json#/definitions/gitSSHCipher"
135+ }
136+ }
105137}
106138```
107139{ /* SCHEMA_SYNC_END: admin/code_hosts/phabricator.schema.json */ }
0 commit comments