@sentry/craft 2.18.0 → 2.18.1
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.
- package/dist/craft +34 -7
- package/package.json +1 -1
package/dist/craft
CHANGED
|
@@ -120453,11 +120453,37 @@ async function getPRAndLabelsFromCommit(hashes) {
|
|
|
120453
120453
|
}
|
|
120454
120454
|
}`;
|
|
120455
120455
|
logger.trace("Running graphql query:", graphqlQuery);
|
|
120456
|
-
|
|
120457
|
-
|
|
120458
|
-
|
|
120459
|
-
|
|
120460
|
-
|
|
120456
|
+
try {
|
|
120457
|
+
const response = await getGitHubClient().graphql(graphqlQuery);
|
|
120458
|
+
const typedResponse = response;
|
|
120459
|
+
if (!typedResponse?.repository) {
|
|
120460
|
+
throw new Error('GraphQL response missing "repository" property');
|
|
120461
|
+
}
|
|
120462
|
+
Object.assign(commitInfo, typedResponse.repository);
|
|
120463
|
+
logger.trace("Query result:", commitInfo);
|
|
120464
|
+
} catch (error3) {
|
|
120465
|
+
withScope2((scope2) => {
|
|
120466
|
+
scope2.setTag("error_type", "graphql_changelog_failure");
|
|
120467
|
+
scope2.setTag("chunk_number", `${chunk + 1}`);
|
|
120468
|
+
scope2.setTag("total_chunks", `${chunkCount}`);
|
|
120469
|
+
scope2.setContext("graphql_chunk", {
|
|
120470
|
+
chunkIndex: chunk + 1,
|
|
120471
|
+
totalChunks: chunkCount,
|
|
120472
|
+
commitsInChunk: subset.length,
|
|
120473
|
+
totalHashes: hashes.length,
|
|
120474
|
+
httpStatus: error3.status || error3.response?.status,
|
|
120475
|
+
errorName: error3.name,
|
|
120476
|
+
query: graphqlQuery
|
|
120477
|
+
});
|
|
120478
|
+
captureException(error3);
|
|
120479
|
+
});
|
|
120480
|
+
logger.warn(
|
|
120481
|
+
`Failed to fetch PR info for chunk ${chunk + 1}/${chunkCount} (${subset.length} commits): ${error3.message || error3}. Skipping this chunk and continuing with remaining commits.`
|
|
120482
|
+
);
|
|
120483
|
+
for (const hash of subset) {
|
|
120484
|
+
commitInfo[`C${hash}`] = null;
|
|
120485
|
+
}
|
|
120486
|
+
}
|
|
120461
120487
|
}
|
|
120462
120488
|
return Object.fromEntries(
|
|
120463
120489
|
Object.entries(commitInfo).map(([hash, commit]) => {
|
|
@@ -120490,6 +120516,7 @@ var init_changelog = __esm({
|
|
|
120490
120516
|
import_path4 = require("path");
|
|
120491
120517
|
init_js_yaml();
|
|
120492
120518
|
init_marked_esm();
|
|
120519
|
+
init_esm7();
|
|
120493
120520
|
init_logger2();
|
|
120494
120521
|
init_config2();
|
|
120495
120522
|
init_git();
|
|
@@ -161081,7 +161108,7 @@ var require_package6 = __commonJS({
|
|
|
161081
161108
|
"package.json"(exports2, module2) {
|
|
161082
161109
|
module2.exports = {
|
|
161083
161110
|
name: "@sentry/craft",
|
|
161084
|
-
version: "2.18.
|
|
161111
|
+
version: "2.18.1",
|
|
161085
161112
|
description: "The universal sentry workflow CLI",
|
|
161086
161113
|
main: "dist/craft",
|
|
161087
161114
|
repository: "https://github.com/getsentry/craft",
|
|
@@ -161238,7 +161265,7 @@ function getPackage() {
|
|
|
161238
161265
|
}
|
|
161239
161266
|
function getPackageVersion() {
|
|
161240
161267
|
const { version: version2 } = getPackage();
|
|
161241
|
-
const buildInfo = "
|
|
161268
|
+
const buildInfo = "39ee616a6a58dc64797feecb145d66770492b66c";
|
|
161242
161269
|
return buildInfo ? `${version2} (${buildInfo})` : version2;
|
|
161243
161270
|
}
|
|
161244
161271
|
function semVerToString(s4) {
|