Skip to content

fix non git info - #350

Merged
parthlambdatest merged 1 commit into
LambdaTest:stagefrom
sushobhit-lt:DOT-6200-prod
Sep 8, 2025
Merged

parthlambdatest merged 1 commit into
LambdaTest:stagefrom
sushobhit-lt:DOT-6200-prod

Conversation

@sushobhit-lt

Copy link
Copy Markdown
Collaborator

This pull request improves how the application handles cases where the current directory is not a Git repository. The main changes ensure that relevant context information is set when Git is unavailable, and update related functions to support this behavior.

Handling non-Git repository scenarios:

  • The isGitRepo function in src/lib/git.ts now accepts a Context object and calls setNonGitInfo to update context when the directory is not a Git repo.
  • Added a new setNonGitInfo function in src/lib/git.ts to populate ctx.git with default values and handle baseline branch and GitHub URL logic when Git is unavailable.

Function signature and usage updates:

  • Updated the usage of isGitRepo in src/tasks/getGitInfo.ts to pass the context object, ensuring consistent handling of non-Git scenarios throughout the codebase.

@parthlambdatest
parthlambdatest merged commit e40e1af into LambdaTest:stage Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants