mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +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`
|
`Failed to configure platform '${platform}': no endpoint defined`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
config.endpoint = endpoint.replace(/[^/]$/, '$&/');
|
||||||
let { host } = config;
|
let { host } = config;
|
||||||
// extract host from endpoint
|
// extract host from endpoint
|
||||||
host = host || (endpoint && URL.parse(endpoint).host);
|
host = host || (endpoint && URL.parse(endpoint).host);
|
||||||
|
|
|
@ -25,12 +25,12 @@ WebApi {
|
||||||
"userAgent": "vsts-node-api",
|
"userAgent": "vsts-node-api",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"serverUrl": "myEndpoint",
|
"serverUrl": "myEndpoint/",
|
||||||
"vsoClient": VsoClient {
|
"vsoClient": VsoClient {
|
||||||
"_initializationPromise": Promise {},
|
"_initializationPromise": Promise {},
|
||||||
"_locationsByAreaPromises": Object {},
|
"_locationsByAreaPromises": Object {},
|
||||||
"basePath": "myEndpoint",
|
"basePath": "myEndpoint/",
|
||||||
"baseUrl": "myEndpoint",
|
"baseUrl": "myEndpoint/",
|
||||||
"restClient": RestClient {
|
"restClient": RestClient {
|
||||||
"client": HttpClient {
|
"client": HttpClient {
|
||||||
"_certConfig": undefined,
|
"_certConfig": undefined,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
exports[`util/endpoints find() allows overrides 1`] = `
|
exports[`util/endpoints find() allows overrides 1`] = `
|
||||||
Object {
|
Object {
|
||||||
"endpoint": "endpoint",
|
"endpoint": "endpoint/",
|
||||||
"name": "GitHub",
|
"name": "GitHub",
|
||||||
"other": "data",
|
"other": "data",
|
||||||
"platform": "github",
|
"platform": "github",
|
||||||
|
|
Loading…
Reference in a new issue