mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
parent
93d02e5e75
commit
d1ee797e54
3 changed files with 5 additions and 4 deletions
|
@ -28,6 +28,7 @@ function update(params) {
|
|||
`Failed to configure platform '${platform}': no endpoint defined`
|
||||
);
|
||||
}
|
||||
config.endpoint = endpoint.replace(/[^/]$/, '$&/');
|
||||
let { host } = config;
|
||||
// extract host from endpoint
|
||||
host = host || (endpoint && URL.parse(endpoint).host);
|
||||
|
|
|
@ -25,12 +25,12 @@ WebApi {
|
|||
"userAgent": "vsts-node-api",
|
||||
},
|
||||
},
|
||||
"serverUrl": "myEndpoint",
|
||||
"serverUrl": "myEndpoint/",
|
||||
"vsoClient": VsoClient {
|
||||
"_initializationPromise": Promise {},
|
||||
"_locationsByAreaPromises": Object {},
|
||||
"basePath": "myEndpoint",
|
||||
"baseUrl": "myEndpoint",
|
||||
"basePath": "myEndpoint/",
|
||||
"baseUrl": "myEndpoint/",
|
||||
"restClient": RestClient {
|
||||
"client": HttpClient {
|
||||
"_certConfig": undefined,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
exports[`util/endpoints find() allows overrides 1`] = `
|
||||
Object {
|
||||
"endpoint": "endpoint",
|
||||
"endpoint": "endpoint/",
|
||||
"name": "GitHub",
|
||||
"other": "data",
|
||||
"platform": "github",
|
||||
|
|
Loading…
Reference in a new issue