UNPKG

renovate

Version:

Automated dependency updates. Flexible so you don't need to be.

37 lines (36 loc) 4.33 kB
import type { BranchStatus } from '../../../types'; import type { ForgejoHttpOptions } from '../../../util/http/forgejo'; import { ForgejoHttp } from '../../../util/http/forgejo'; import type { Branch, CombinedCommitStatus, Comment, CommitStatus, CommitStatusCreateParams, CommitStatusType, Issue, IssueCreateParams, IssueSearchParams, IssueUpdateLabelsParams, IssueUpdateParams, Label, PR, PRCreateParams, PRMergeParams, PRUpdateParams, PrReviewersParams, Repo, RepoContents, RepoSearchParams, User } from './types'; export declare const forgejoHttp: ForgejoHttp; export declare function getCurrentUser(options?: ForgejoHttpOptions): Promise<User>; export declare function getVersion(options?: ForgejoHttpOptions): Promise<string>; export declare function searchRepos(params: RepoSearchParams, options?: ForgejoHttpOptions): Promise<Repo[]>; export declare function orgListRepos(organization: string, options?: ForgejoHttpOptions): Promise<Repo[]>; export declare function getRepo(repoPath: string, options?: ForgejoHttpOptions): Promise<Repo>; export declare function getRepoContents(repoPath: string, filePath: string, ref?: string | null, options?: ForgejoHttpOptions): Promise<RepoContents>; export declare function createPR(repoPath: string, params: PRCreateParams, options?: ForgejoHttpOptions): Promise<PR>; export declare function updatePR(repoPath: string, idx: number, params: PRUpdateParams, options?: ForgejoHttpOptions): Promise<PR>; export declare function closePR(repoPath: string, idx: number, options?: ForgejoHttpOptions): Promise<void>; export declare function mergePR(repoPath: string, idx: number, params: PRMergeParams, options?: ForgejoHttpOptions): Promise<void>; export declare function getPR(repoPath: string, idx: number, options?: ForgejoHttpOptions): Promise<PR>; export declare function getPRByBranch(repoPath: string, base: string, head: string, options?: ForgejoHttpOptions): Promise<PR | null>; export declare function requestPrReviewers(repoPath: string, idx: number, params: PrReviewersParams, options?: ForgejoHttpOptions): Promise<void>; export declare function createIssue(repoPath: string, params: IssueCreateParams, options?: ForgejoHttpOptions): Promise<Issue>; export declare function updateIssue(repoPath: string, idx: number, params: IssueUpdateParams, options?: ForgejoHttpOptions): Promise<Issue>; export declare function updateIssueLabels(repoPath: string, idx: number, params: IssueUpdateLabelsParams, options?: ForgejoHttpOptions): Promise<Label[]>; export declare function closeIssue(repoPath: string, idx: number, options?: ForgejoHttpOptions): Promise<void>; export declare function searchIssues(repoPath: string, params: IssueSearchParams, options?: ForgejoHttpOptions): Promise<Issue[]>; export declare function getIssue(repoPath: string, idx: number, options?: ForgejoHttpOptions): Promise<Issue>; export declare function getRepoLabels(repoPath: string, options?: ForgejoHttpOptions): Promise<Label[]>; export declare function getOrgLabels(orgName: string, options?: ForgejoHttpOptions): Promise<Label[]>; export declare function unassignLabel(repoPath: string, issue: number, label: number, options?: ForgejoHttpOptions): Promise<void>; export declare function createComment(repoPath: string, issue: number, body: string, options?: ForgejoHttpOptions): Promise<Comment>; export declare function updateComment(repoPath: string, idx: number, body: string, options?: ForgejoHttpOptions): Promise<Comment>; export declare function deleteComment(repoPath: string, idx: number, options?: ForgejoHttpOptions): Promise<void>; export declare function getComments(repoPath: string, issue: number, options?: ForgejoHttpOptions): Promise<Comment[]>; export declare function createCommitStatus(repoPath: string, branchCommit: string, params: CommitStatusCreateParams, options?: ForgejoHttpOptions): Promise<CommitStatus>; export declare const forgejoToRenovateStatusMapping: Record<CommitStatusType, BranchStatus | null>; export declare const renovateToForgejoStatusMapping: Record<BranchStatus, CommitStatusType>; export declare function getCombinedCommitStatus(repoPath: string, branchName: string, options?: ForgejoHttpOptions): Promise<CombinedCommitStatus>; export declare function getBranch(repoPath: string, branchName: string, options?: ForgejoHttpOptions): Promise<Branch>;