UNPKG

@vizzly-testing/cli

Version:

Visual review platform for UI developers and designers

57 lines (56 loc) 2.3 kB
export function getCommonAncestor(commit1: any, commit2: any, cwd?: any): Promise<any>; export function getCurrentCommitSha(cwd?: any): Promise<any>; export function getCurrentBranch(cwd?: any): Promise<any>; export function getDefaultBranch(cwd?: any): Promise<any>; export function generateBuildName(): string; /** * Get the current commit message * @param {string} cwd - Working directory * @returns {Promise<string|null>} Commit message or null if not available */ export function getCommitMessage(cwd?: string): Promise<string | null>; /** * Detect commit message with override and environment variable support * @param {string} override - Commit message override from CLI * @param {string} cwd - Working directory * @returns {Promise<string|null>} Commit message or null if not available */ export function detectCommitMessage(override?: string, cwd?: string): Promise<string | null>; /** * Check if the working directory is a git repository * @param {string} cwd - Working directory * @returns {Promise<boolean>} */ export function isGitRepository(cwd?: string): Promise<boolean>; /** * Get git status information * @param {string} cwd - Working directory * @returns {Promise<Object|null>} Git status info or null */ export function getGitStatus(cwd?: string): Promise<any | null>; /** * Detect branch with override support * @param {string} override - Branch override from CLI * @param {string} cwd - Working directory * @returns {Promise<string>} */ export function detectBranch(override?: string, cwd?: string): Promise<string>; /** * Detect commit SHA with override support * @param {string} override - Commit override from CLI * @param {string} cwd - Working directory * @returns {Promise<string|null>} */ export function detectCommit(override?: string, cwd?: string): Promise<string | null>; /** * Generate build name with git information * @param {string} override - Build name override from CLI * @param {string} cwd - Working directory * @returns {Promise<string>} */ export function generateBuildNameWithGit(override?: string, cwd?: string): Promise<string>; /** * Detect pull request number from CI environment * @returns {number|null} Pull request number or null if not in PR context */ export function detectPullRequestNumber(): number | null;