- Introduced orgAllowlist and orgDenylist properties to filter organizations during fetching. - Enhanced loadChangelogFromRepo to check multiple potential changelog file names. - Updated fetchTags to return a map of tag names associated with their SHAs. - Improved pagination logic in fetchAllOrganizations and fetchRepositoriesForOrg to handle larger datasets. - Added retry logic in fetchFunction to handle rate limiting and server errors more gracefully. - Modified ITag interface to include an optional name property for better tag handling.
47 lines
731 B
TypeScript
47 lines
731 B
TypeScript
export interface IRepositoryOwner {
|
|
login: string;
|
|
}
|
|
|
|
export interface IRepository {
|
|
owner: IRepositoryOwner;
|
|
name: string;
|
|
}
|
|
|
|
export interface ICommitAuthor {
|
|
date: string;
|
|
}
|
|
|
|
export interface ICommitDetail {
|
|
message: string;
|
|
author: ICommitAuthor;
|
|
}
|
|
|
|
export interface ICommit {
|
|
sha: string;
|
|
commit: ICommitDetail;
|
|
}
|
|
|
|
export interface ITag {
|
|
name?: string;
|
|
commit?: {
|
|
sha?: string;
|
|
};
|
|
}
|
|
|
|
export interface IRepoSearchResponse {
|
|
data: IRepository[];
|
|
}
|
|
|
|
export interface ICommitResult {
|
|
baseUrl: string;
|
|
org: string;
|
|
repo: string;
|
|
timestamp: string;
|
|
hash: string;
|
|
commitMessage: string;
|
|
tagged: boolean;
|
|
publishedOnNpm: boolean;
|
|
prettyAgoTime: string;
|
|
changelog: string | undefined;
|
|
}
|