post-merge
Version:
A reusable library for handling post-merge operations including version bumping and git tagging
34 lines • 1.16 kB
TypeScript
import { GitConfig } from './types';
/**
* Configures git user settings
*/
export declare function configureGitUser(userName: string, userEmail: string): Promise<void>;
/**
* Configures git remote URL with access token
*/
export declare function configureGitRemote(remoteUrl: string): Promise<void>;
/**
* Commits changes with a specific message
*/
export declare function commitChanges(message: string): Promise<void>;
/**
* Ensures branch exists and checks it out if needed
*/
export declare function ensureBranchExists(branchName: string): Promise<void>;
/**
* Pushes changes to remote branch
*/
export declare function pushChanges(branchName: string): Promise<void>;
/**
* Creates and pushes a git tag
*/
export declare function createAndPushTag(tagName: string): Promise<void>;
/**
* Builds git remote URL with access token
*/
export declare function buildRemoteUrl(serverHost: string, projectPath: string, accessToken: string): string;
/**
* Creates GitConfig from environment variables and overrides
*/
export declare function createGitConfigFromEnv(overrides?: Partial<GitConfig>): GitConfig;
//# sourceMappingURL=git-utils.d.ts.map