feat(core): Add changelog fetching and parsing functionality

This commit is contained in:
2024-12-14 00:54:38 +01:00
parent e843197211
commit bb248ed408
4 changed files with 119 additions and 60 deletions

View File

@ -1,37 +1,37 @@
export interface RepositoryOwner {
export interface IRepositoryOwner {
login: string;
}
export interface Repository {
owner: RepositoryOwner;
export interface IRepository {
owner: IRepositoryOwner;
name: string;
}
export interface CommitAuthor {
export interface ICommitAuthor {
date: string;
}
export interface CommitDetail {
export interface ICommitDetail {
message: string;
author: CommitAuthor;
author: ICommitAuthor;
}
export interface Commit {
export interface ICommit {
sha: string;
commit: CommitDetail;
commit: ICommitDetail;
}
export interface Tag {
export interface ITag {
commit?: {
sha?: string;
};
}
export interface RepoSearchResponse {
data: Repository[];
export interface IRepoSearchResponse {
data: IRepository[];
}
export interface CommitResult {
export interface ICommitResult {
baseUrl: string;
org: string;
repo: string;
@ -41,4 +41,5 @@ export interface CommitResult {
tagged: boolean;
publishedOnNpm: boolean;
prettyAgoTime: string;
changelog: string | undefined;
}