next-issue 2.21.1 → 2.21.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/dist/progress.mjs CHANGED
@@ -53,7 +53,8 @@ export function applyEvent(progress, record) {
53
53
  }
54
54
  if (kind === 'issue.end' || kind === 'issue.error') {
55
55
  const outcome = kind === 'issue.error' ? 'error' : record['outcome'];
56
- const handled = outcome === 'done' || outcome === 'needs-human' || outcome === 'error'
56
+ const repeated = progress.handled.some((item) => item.issue === issue && item.outcome === outcome);
57
+ const handled = !repeated && (outcome === 'done' || outcome === 'needs-human' || outcome === 'error')
57
58
  ? [...progress.handled, { issue, outcome }]
58
59
  : progress.handled;
59
60
  const issues = progress.issues.filter((current) => current.issue !== issue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "2.21.1",
3
+ "version": "2.21.2",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",