Skip to content

Commit

Permalink
fix(ci): improve misleading logs
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Nov 8, 2024
1 parent 647f7e2 commit cfece08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/ci/src/lib/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type ProviderAPIClient = {
};

/**
* PR comment from {@link ProviderAPIClient}
* PR/MR comment from {@link ProviderAPIClient}
*/
export type Comment = {
id: number;
Expand Down
6 changes: 3 additions & 3 deletions packages/ci/src/lib/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async function runOnProject(args: {
}

logger.info(
`PR detected, preparing to compare base branch ${base.ref} to head ${head.ref}`,
`PR/MR detected, preparing to compare base branch ${base.ref} to head ${head.ref}`,
);

const prevReport = await collectPreviousReport({ ...args, base, ctx });
Expand Down Expand Up @@ -236,7 +236,7 @@ async function collectPreviousReport(args: {
logger.debug(`Collected previous report at ${prevReportPath}`);

await git.checkout(['-f', '-']);
logger.info('Switched back to PR branch');
logger.info('Switched back to PR/MR branch');

return prevReport;
}
Expand Down Expand Up @@ -267,7 +267,7 @@ async function findNewIssues(args: {
logger.debug(
`Found ${issues.length} relevant issues for ${
Object.keys(changedFiles).length
} changed files and created GitHub annotations`,
} changed files`,
);

return issues;
Expand Down

0 comments on commit cfece08

Please sign in to comment.