feat(gitea): add domain model classes, helpers, and refactor GiteaClient internals; expand README with usage and docs

This commit is contained in:
2026-03-02 13:09:44 +00:00
parent 5e7a84c6c3
commit 1b685091af
14 changed files with 1387 additions and 336 deletions

View File

@@ -1,4 +1,26 @@
// Main client
export { GiteaClient } from './gitea.classes.giteaclient.js';
// Domain classes
export { GiteaOrganization } from './gitea.classes.organization.js';
export { GiteaRepository } from './gitea.classes.repository.js';
export { GiteaActionRun } from './gitea.classes.actionrun.js';
export { GiteaActionRunJob, GiteaActionRunJobStep } from './gitea.classes.actionrunjob.js';
export { GiteaBranch } from './gitea.classes.branch.js';
export { GiteaTag } from './gitea.classes.tag.js';
export { GiteaSecret } from './gitea.classes.secret.js';
// Helpers
export {
autoPaginate,
computeDuration,
resolveGiteaStatus,
extractRefFromPath,
extractWorkflowIdFromPath,
toGiteaApiStatus,
} from './gitea.helpers.js';
// Interfaces (raw API types)
export type {
IGiteaUser,
IGiteaRepository,
@@ -13,4 +35,6 @@ export type {
IListOptions,
IActionRunListOptions,
} from './gitea.interfaces.js';
// Commit info
export { commitinfo } from './00_commitinfo_data.js';