@weareikko/code-review 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -560,7 +560,7 @@ function buildSummaryBody(summary, costFooter, options = {}) {
|
|
|
560
560
|
return `${withFooter}\n\n${buildSummaryHistoryBlock(historyEntries)}`;
|
|
561
561
|
}
|
|
562
562
|
function buildReviewedCommitFooter(commitSha) {
|
|
563
|
-
return `Reviewed by ${PRODUCT_LINK} v0.9.
|
|
563
|
+
return `Reviewed by ${PRODUCT_LINK} v0.9.3 for commit ${commitSha}.`;
|
|
564
564
|
}
|
|
565
565
|
function extractReviewedCommitSha(body) {
|
|
566
566
|
return REVIEWED_COMMIT_FOOTER_PATTERN.exec(body)?.[1] ?? null;
|
|
@@ -1358,7 +1358,7 @@ function createDiagnosticContext(phase, config, runId, overrides = {}) {
|
|
|
1358
1358
|
phase,
|
|
1359
1359
|
project: config.project,
|
|
1360
1360
|
mr: config.mr,
|
|
1361
|
-
gitlabUrl: config.gitlabUrl,
|
|
1361
|
+
gitlabUrl: config.platform === "github" ? config.githubServerUrl : config.gitlabUrl,
|
|
1362
1362
|
platform: config.platform,
|
|
1363
1363
|
cwd: config.cwd,
|
|
1364
1364
|
model: config.model,
|
|
@@ -5265,7 +5265,7 @@ async function loadDefaultRuntime() {
|
|
|
5265
5265
|
const [sdkNode, resources, semconv] = modules;
|
|
5266
5266
|
const serviceResource = resources.resourceFromAttributes({
|
|
5267
5267
|
[semconv.ATTR_SERVICE_NAME ?? "service.name"]: SERVICE_NAME,
|
|
5268
|
-
[semconv.ATTR_SERVICE_VERSION ?? "service.version"]: "0.9.
|
|
5268
|
+
[semconv.ATTR_SERVICE_VERSION ?? "service.version"]: "0.9.3"
|
|
5269
5269
|
});
|
|
5270
5270
|
applyOtelExporterDefaults(process.env);
|
|
5271
5271
|
const sdk = new sdkNode.NodeSDK({ resource: resources.defaultResource().merge(serviceResource) });
|
|
@@ -5737,7 +5737,7 @@ function boldCommentTitle(body) {
|
|
|
5737
5737
|
*/
|
|
5738
5738
|
function buildCommentBody(body, commitSha, confidence) {
|
|
5739
5739
|
const confidenceLine = `_Confidence: ${confidence}._`;
|
|
5740
|
-
const footer = `<sub>Reviewed by ${PRODUCT_LINK} v0.9.
|
|
5740
|
+
const footer = `<sub>Reviewed by ${PRODUCT_LINK} v0.9.3 for commit ${commitSha}.</sub>`;
|
|
5741
5741
|
return `${boldCommentTitle(body.trim())}\n\n${confidenceLine}\n\n---\n\n${footer}`;
|
|
5742
5742
|
}
|
|
5743
5743
|
function buildPayload(comment, body, refs, resolved) {
|
|
@@ -6844,10 +6844,10 @@ async function main(argv = process.argv.slice(2)) {
|
|
|
6844
6844
|
return;
|
|
6845
6845
|
}
|
|
6846
6846
|
if (argv.includes("--version") || argv.includes("-v")) {
|
|
6847
|
-
console.log("0.9.
|
|
6847
|
+
console.log("0.9.3");
|
|
6848
6848
|
return;
|
|
6849
6849
|
}
|
|
6850
|
-
process.stderr.write(`[code-review] @weareikko/code-review v0.9.
|
|
6850
|
+
process.stderr.write(`[code-review] @weareikko/code-review v0.9.3\n`);
|
|
6851
6851
|
assertNodeVersion();
|
|
6852
6852
|
applyCodeReviewEnvPrefix();
|
|
6853
6853
|
applyDefaultCacheRetention();
|
|
@@ -6870,4 +6870,4 @@ if (isDirectRun()) main().catch((error) => {
|
|
|
6870
6870
|
//#endregion
|
|
6871
6871
|
export { normalizeBody as $, SUMMARY_HISTORY_END as A, buildSummaryHistoryEntries as B, createDiagnosticContext as C, traceDiagnosticPhase as D, traceDiagnostic as E, SUMMARY_MARKER as F, findExistingSummaryNoteId as G, extractSummaryHistoryEntries as H, buildArchivedSummaryEntry as I, upsertSummaryNote as J, stripSummaryHistory as K, buildReviewedCommitFooter as L, SUMMARY_HISTORY_ENTRY_START as M, SUMMARY_HISTORY_LIMIT as N, normalizeSeverity as O, SUMMARY_HISTORY_START as P, fingerprints as Q, buildSizeNoticeBlock as R, DIAGNOSTIC_CHANNEL_PREFIX as S, diagnosticChannels as T, findExistingReviewedCommitSha as U, extractReviewedCommitSha as V, findExistingSummaryNote as W, extractDiffHunkContext as X, appendFingerprintMarkers as Y, extractExistingFingerprints as Z, resolveNpmSkillDir as _, main as a, parseReviewMarkdownWithWarnings as b, buildGeneratedComments as c, startOtelBridge as d, sha256 as et, filterDiff as f, parseSkillSpec as g, loadNamedSkill as h, formatUsageLine as i, SUMMARY_HISTORY_ENTRY_END as j, toGitLabReviewSeverity as k, buildPayload as l, gitSkillCacheKey as m, formatPerModelUsage as n, run as o, runReview as p, stripSummaryMarker as q, formatSkillsFooter as r, withHttpStamping as s, countPostedBySeverity as t, isOtelEnabled as u, resolveSkillCacheDir as v, createDiagnosticRunId as w, DIAGNOSTIC_CHANNEL_NAMES as x, parseReviewMarkdown as y, buildSummaryBody as z };
|
|
6872
6872
|
|
|
6873
|
-
//# sourceMappingURL=cli-
|
|
6873
|
+
//# sourceMappingURL=cli-BaZloofb.js.map
|