@jsenv/github-check-run 0.0.10 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/github-check-run",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Interact with GitHub check rest API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -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",