next-issue 8.2.0 → 8.2.1

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/README.md CHANGED
@@ -368,10 +368,12 @@ and comments the reason on the issue, when:
368
368
  `<n>` branch when the issue is done. For the checks on the base, a failure
369
369
  in a file that the change added or changed is never unrelated: when the
370
370
  failed logs name such a file (by its path, or by a tail of its path that
371
- keeps a folder), the harness refuses the claim and gives the fixer another
372
- round from `maxCiFixes`, with a note that names the file. A later hand-over
373
- comment of the same run, such as for a fix that fails its checks too or
374
- fails to land, still names the dispute branch of each refused round;
371
+ keeps a folder and has no folder before it, so `packages/a/src/index.ts`
372
+ does not name `packages/b/src/index.ts`), the harness refuses the claim
373
+ and gives the fixer another round from `maxCiFixes`, with a note that
374
+ names the file. A later hand-over comment of the same run, such as for a
375
+ fix that fails its checks too or fails to land, still names the dispute
376
+ branch of each refused round;
375
377
  - a fixer disputes or settles the findings and leaves a change behind, either
376
378
  in the worktree or in a commit of its own. A dispute carries a reason, not a
377
379
  diff, and a retry of the issue cleans the worktree before the next review,
package/dist/gate.mjs CHANGED
@@ -149,14 +149,14 @@ function refusedNote(refused) {
149
149
  ? ''
150
150
  : ` The last fixer called the failure unrelated, but the failed logs name \`${refused}\`, a file of this change, so the failure is not unrelated.`;
151
151
  }
152
- /** The first file of the change that the logs name, by its path or by a tail of its path that keeps a folder. */
152
+ /** The first file of the change that the logs name, by its path or by a tail of its path that keeps a folder and has no folder before it. */
153
153
  function namedFile(logs, files) {
154
154
  return files.find((file) => {
155
155
  const parts = file.split('/');
156
156
  const tails = parts.length === 1
157
157
  ? [file]
158
158
  : parts.slice(0, -1).map((_, index) => parts.slice(index).join('/'));
159
- return tails.some((tail) => new RegExp(`(?<![\\w.-])${escapeRegExp(tail)}(?![\\w.-])`).test(logs));
159
+ return tails.some((tail) => new RegExp(`(?<![\\w.${tail === file ? '' : '/'}-])${escapeRegExp(tail)}(?![\\w.-])`).test(logs));
160
160
  });
161
161
  }
162
162
  function escapeRegExp(text) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",