@pagopa/dx-cli
Version:
A CLI useful to manage DX tools.
25 lines (24 loc) • 924 B
TypeScript
import { ResultAsync } from "neverthrow";
import { Octokit } from "octokit";
import { GitHubService, PullRequest, Repository } from "../../domain/github.js";
type GitHubReleaseParam = {
client: Octokit;
owner: string;
repo: string;
};
export declare class OctokitGitHubService implements GitHubService {
#private;
constructor(octokit: Octokit);
createPullRequest(params: {
base: string;
body: string;
head: string;
owner: string;
repo: string;
title: string;
}): Promise<PullRequest>;
getRepository(owner: string, name: string): Promise<Repository>;
}
export declare const fetchLatestTag: ({ client, owner, repo }: GitHubReleaseParam) => ResultAsync<import("semver").SemVer | null, Error>;
export declare const fetchLatestRelease: ({ client, owner, repo, }: GitHubReleaseParam) => ResultAsync<import("semver").SemVer | null, Error>;
export {};