Skip to content

Commit

Permalink
Adds better logs to the external prs git checkout (#1786)
Browse files Browse the repository at this point in the history
add logs
  • Loading branch information
ravenac95 committed Jul 13, 2024
1 parent 897ab7f commit f87cdb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ops/external-prs/src/oso/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ export class PRTestDeployCoordinator {
headSha: string,
checkoutPath: string,
): Promise<boolean> {
logger.info({
message: `running a git diff in ${checkoutPath}`,
base: baseSha,
headSha: headSha,
});

const git = simpleGit({ baseDir: checkoutPath });
const diffResult = await git.diffSummary([baseSha, headSha]);
const dbtFiles = diffResult.files.filter((f) => {
Expand Down

0 comments on commit f87cdb0

Please sign in to comment.