next-issue 10.7.3 → 10.7.4

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.
Files changed (2) hide show
  1. package/dist/run.mjs +5 -2
  2. package/package.json +1 -1
package/dist/run.mjs CHANGED
@@ -51,7 +51,7 @@ async function handle(args, config, repo, recorder, controls) {
51
51
  const { reports, stoppedAt, error, crash } = args.watch || controls.watching !== undefined
52
52
  ? await watchRun(args, loop, context, controls, print)
53
53
  : await runIssues(args, loop);
54
- recordLoopEnd(recorder, stoppedAt, error);
54
+ recordLoopEnd(recorder, stoppedAt, interrupts.afterIssue(), error);
55
55
  const summary = await endRun(recorder, reports);
56
56
  if (crash !== undefined) {
57
57
  throw crash.failure;
@@ -81,10 +81,13 @@ export function watchRun(args, loop, context, controls, print) {
81
81
  refreshed: controls.refreshed,
82
82
  });
83
83
  }
84
- function recordLoopEnd(recorder, stoppedAt, error) {
84
+ function recordLoopEnd(recorder, stoppedAt, stopped, error) {
85
85
  if (stoppedAt !== undefined) {
86
86
  recorder.event('run.stop', { issue: stoppedAt }, 'quiet');
87
87
  }
88
+ else if (stopped) {
89
+ recorder.event('run.stop', {}, 'quiet');
90
+ }
88
91
  if (error !== undefined) {
89
92
  recorder.event('issues.fail', { error: message(error) }, 'quiet');
90
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "10.7.3",
3
+ "version": "10.7.4",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",