Files
codefeed/ts/interfaces/index.ts
Juergen Kunz 98f5c466a6 feat: add organization allowlist and denylist filters, enhance changelog loading, and improve fetch functions
- 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.
2025-09-12 22:06:02 +00:00

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;
}