@wdio/browserstack-service
Version:
WebdriverIO service for better Browserstack integration
53 lines • 1.28 kB
TypeScript
type GitRemote = {
name: string;
url: string;
};
export type GitMetadata = {
name: string;
sha: string;
short_sha: string;
branch: string;
tag: string;
committer: string;
committer_date: string;
author: string;
author_date: string;
commit_message: string;
root: string;
common_git_dir: string;
worktree_git_dir: string;
last_tag: string;
commits_since_last_tag: string;
remotes: GitRemote[];
};
type GitCommitMessage = {
message: string;
user: string;
};
export type GitAISelectionResult = {
prId: string;
filesChanged: string[];
authors: string[];
prDate: string;
commitMessages: GitCommitMessage[];
prTitle: string;
prDescription: string;
prRawDiff: string;
};
/**
* Get host information for the test orchestration
*/
export declare function getHostInfo(): {
hostname: string;
platform: NodeJS.Platform;
architecture: NodeJS.Architecture;
release: string;
username: string;
};
/**
* Get Git metadata for AI selection
* @param multiRepoSource Array of repository paths for multi-repo setup
*/
export declare function getGitMetadataForAISelection(folders?: string[] | null): GitAISelectionResult[];
export {};
//# sourceMappingURL=helpers.d.ts.map