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 +6 -4
- package/dist/gate.mjs +2 -2
- package/package.json +1 -1
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
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
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
|
|
159
|
+
return tails.some((tail) => new RegExp(`(?<![\\w.${tail === file ? '' : '/'}-])${escapeRegExp(tail)}(?![\\w.-])`).test(logs));
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
function escapeRegExp(text) {
|