apx-toolkit
Version:
Automatically discover APIs and generate complete integration packages: code in 12 languages, TypeScript types, test suites, SDK packages, API documentation, mock servers, performance reports, and contract tests. Saves 2-4 weeks of work in seconds.
73 lines • 1.95 kB
TypeScript
/**
* Git Integration
* Automatically commit generated code and create changelogs
*/
export interface GitConfig {
enabled?: boolean;
autoCommit?: boolean;
createBranch?: boolean;
branchName?: string;
commitMessage?: string;
generateChangelog?: boolean;
tagVersion?: boolean;
userEmail?: string;
userName?: string;
}
export interface ChangelogEntry {
version?: string;
date: string;
changes: {
added?: string[];
modified?: string[];
removed?: string[];
};
apis?: {
discovered: number;
modified: number;
removed: number;
};
}
/**
* Check if git is initialized
*/
export declare function isGitInitialized(directory?: string): boolean;
/**
* Initialize git repository if not exists
*/
export declare function initializeGit(directory?: string): void;
/**
* Check if there are uncommitted changes
*/
export declare function hasChanges(directory?: string, path?: string): boolean;
/**
* Create a new branch
*/
export declare function createBranch(branchName: string, directory?: string): void;
/**
* Stage files
*/
export declare function stageFiles(files: string[], directory?: string): void;
/**
* Commit changes
*/
export declare function commitChanges(message: string, directory?: string, config?: {
email?: string;
name?: string;
}): void;
/**
* Create a git tag
*/
export declare function createTag(tag: string, message?: string, directory?: string): void;
/**
* Generate changelog entry
*/
export declare function generateChangelogEntry(entry: ChangelogEntry): string;
/**
* Append to changelog file
*/
export declare function appendChangelog(entry: ChangelogEntry, changelogPath?: string, directory?: string): void;
/**
* Auto-commit generated files
*/
export declare function autoCommitGeneratedFiles(files: string[], config?: GitConfig, directory?: string): void;
//# sourceMappingURL=git-integration.d.ts.map