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