renovate
Version:
Automated dependency updates. Flexible so you don't need to be.
23 lines (22 loc) • 732 B
TypeScript
import type { BitbucketHttp } from '../../../util/http/bitbucket';
import type { Pr } from '../types';
export declare class BitbucketPrCache {
private repo;
private author;
private items;
private cache;
private constructor();
private static init;
private getPrs;
static getPrs(http: BitbucketHttp, repo: string, author: string | null): Promise<Pr[]>;
private setPr;
static setPr(http: BitbucketHttp, repo: string, author: string | null, item: Pr): Promise<void>;
private reconcile;
private getUrl;
private sync;
/**
* Ensure the pr cache starts with the most recent PRs.
* JavaScript ensures that the cache is sorted by PR number.
*/
private updateItems;
}