@jsenv/github-check-run 0.0.9 → 0.0.11
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/package.json
CHANGED
|
@@ -110,6 +110,8 @@ ${error.stack}`);
|
|
|
110
110
|
const error = new Error(`unexpected response status.
|
|
111
111
|
--- response status ---
|
|
112
112
|
${response.status}
|
|
113
|
+
--- response statusText ---
|
|
114
|
+
${response.statusText}
|
|
113
115
|
--- expected response status ---
|
|
114
116
|
${Object.keys(responseStatusHandlers).join(", ")}
|
|
115
117
|
--- request method ---
|
|
@@ -196,6 +196,9 @@ ${JSON.stringify(body, null, " ")}`);
|
|
|
196
196
|
});
|
|
197
197
|
},
|
|
198
198
|
fail: ({ title, summary, annotations } = {}) => {
|
|
199
|
+
if (pendingAbortController) {
|
|
200
|
+
pendingAbortController.abort();
|
|
201
|
+
}
|
|
199
202
|
return update({
|
|
200
203
|
status: "completed",
|
|
201
204
|
conclusion: "failure",
|
|
@@ -205,6 +208,9 @@ ${JSON.stringify(body, null, " ")}`);
|
|
|
205
208
|
});
|
|
206
209
|
},
|
|
207
210
|
pass: ({ title, summary, annotations } = {}) => {
|
|
211
|
+
if (pendingAbortController) {
|
|
212
|
+
pendingAbortController.abort();
|
|
213
|
+
}
|
|
208
214
|
return update({
|
|
209
215
|
status: "completed",
|
|
210
216
|
conclusion: "success",
|