@graphql-inspector/action 3.1.1 → 3.1.2
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/index.js +5 -3
- package/index.mjs +5 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8086,7 +8086,7 @@ function run() {
|
|
|
8086
8086
|
let oldSchema;
|
|
8087
8087
|
let newSchema;
|
|
8088
8088
|
let sources;
|
|
8089
|
-
if (path.extname(schemaPath.toLowerCase()) ===
|
|
8089
|
+
if (path.extname(schemaPath.toLowerCase()) === '.json') {
|
|
8090
8090
|
oldSchema = buildClientSchema(JSON.parse(oldFile));
|
|
8091
8091
|
newSchema = buildClientSchema(JSON.parse(newFile));
|
|
8092
8092
|
sources = {
|
|
@@ -8122,7 +8122,8 @@ function run() {
|
|
|
8122
8122
|
? (_c = github$1.context.payload.pull_request.labels) === null || _c === void 0 ? void 0 : _c.some((label) => label.name === approveLabel)
|
|
8123
8123
|
: false;
|
|
8124
8124
|
// Force Success when failOnBreaking is disabled
|
|
8125
|
-
if ((failOnBreaking === false || hasApprovedBreakingChangeLabel) &&
|
|
8125
|
+
if ((failOnBreaking === false || hasApprovedBreakingChangeLabel) &&
|
|
8126
|
+
conclusion === github.CheckConclusion.Failure) {
|
|
8126
8127
|
core.info('FailOnBreaking disabled. Forcing SUCCESS');
|
|
8127
8128
|
conclusion = github.CheckConclusion.Success;
|
|
8128
8129
|
}
|
|
@@ -8200,7 +8201,8 @@ function updateCheckRun(octokit, checkId, { conclusion, output }) {
|
|
|
8200
8201
|
const batches = batch(annotations, 50);
|
|
8201
8202
|
core.info(`annotations to be sent: ${annotations.length}`);
|
|
8202
8203
|
yield octokit.checks.update(Object.assign(Object.assign({ check_run_id: checkId, completed_at: new Date().toISOString(), status: 'completed' }, github$1.context.repo), { conclusion, output: {
|
|
8203
|
-
title,
|
|
8204
|
+
title,
|
|
8205
|
+
summary,
|
|
8204
8206
|
} }));
|
|
8205
8207
|
try {
|
|
8206
8208
|
yield Promise.all(batches.map((chunk) => tslib.__awaiter(this, void 0, void 0, function* () {
|
package/index.mjs
CHANGED
|
@@ -8084,7 +8084,7 @@ function run() {
|
|
|
8084
8084
|
let oldSchema;
|
|
8085
8085
|
let newSchema;
|
|
8086
8086
|
let sources;
|
|
8087
|
-
if (extname(schemaPath.toLowerCase()) ===
|
|
8087
|
+
if (extname(schemaPath.toLowerCase()) === '.json') {
|
|
8088
8088
|
oldSchema = buildClientSchema(JSON.parse(oldFile));
|
|
8089
8089
|
newSchema = buildClientSchema(JSON.parse(newFile));
|
|
8090
8090
|
sources = {
|
|
@@ -8120,7 +8120,8 @@ function run() {
|
|
|
8120
8120
|
? (_c = context.payload.pull_request.labels) === null || _c === void 0 ? void 0 : _c.some((label) => label.name === approveLabel)
|
|
8121
8121
|
: false;
|
|
8122
8122
|
// Force Success when failOnBreaking is disabled
|
|
8123
|
-
if ((failOnBreaking === false || hasApprovedBreakingChangeLabel) &&
|
|
8123
|
+
if ((failOnBreaking === false || hasApprovedBreakingChangeLabel) &&
|
|
8124
|
+
conclusion === CheckConclusion.Failure) {
|
|
8124
8125
|
info('FailOnBreaking disabled. Forcing SUCCESS');
|
|
8125
8126
|
conclusion = CheckConclusion.Success;
|
|
8126
8127
|
}
|
|
@@ -8198,7 +8199,8 @@ function updateCheckRun(octokit, checkId, { conclusion, output }) {
|
|
|
8198
8199
|
const batches = batch(annotations, 50);
|
|
8199
8200
|
info(`annotations to be sent: ${annotations.length}`);
|
|
8200
8201
|
yield octokit.checks.update(Object.assign(Object.assign({ check_run_id: checkId, completed_at: new Date().toISOString(), status: 'completed' }, context.repo), { conclusion, output: {
|
|
8201
|
-
title,
|
|
8202
|
+
title,
|
|
8203
|
+
summary,
|
|
8202
8204
|
} }));
|
|
8203
8205
|
try {
|
|
8204
8206
|
yield Promise.all(batches.map((chunk) => __awaiter(this, void 0, void 0, function* () {
|