@kazupon/lerna-changelog
Version:
Generate a changelog for a lerna monorepo
35 lines (34 loc) • 779 B
TypeScript
export interface GitHubUserResponse {
login: string;
name: string;
html_url: string;
}
export interface GitHubIssueResponse {
number: number;
title: string;
pull_request?: {
html_url: string;
};
labels: Array<{
name: string;
}>;
user: {
login: string;
html_url: string;
};
}
export interface Options {
repo: string;
rootPath: string;
cacheDir?: string;
}
export default class GithubAPI {
private cacheDir;
private auth;
constructor(config: Options);
getBaseIssueUrl(repo: string): string;
getIssueData(repo: string, issue: string): Promise<GitHubIssueResponse>;
getUserData(login: string): Promise<GitHubUserResponse>;
private _fetch;
private getAuthToken;
}