mirror of
https://github.com/renovatebot/renovate.git
synced 2025-03-15 08:34:54 +00:00
18 lines
379 B
TypeScript
18 lines
379 B
TypeScript
import { HttpBase } from './http';
|
|
import type { HttpOptions } from './types';
|
|
|
|
let baseUrl: string;
|
|
|
|
export function setBaseUrl(url: string): void {
|
|
baseUrl = url;
|
|
}
|
|
|
|
export class JiraHttp extends HttpBase {
|
|
protected override get baseUrl(): string | undefined {
|
|
return baseUrl;
|
|
}
|
|
|
|
constructor(type = 'jira', options?: HttpOptions) {
|
|
super(type, options);
|
|
}
|
|
}
|