next-issue 6.6.11 → 6.6.12
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 +3 -1
- package/dist/git-land.mjs +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -135,7 +135,9 @@ the run handles one issue. For each issue:
|
|
|
135
135
|
commit of the change on the base branch, pushes the revert and hands the
|
|
136
136
|
issue to a person. A revert
|
|
137
137
|
push that the remote refuses, for example because the base moved, makes
|
|
138
|
-
the revert again on the new base, three times at most. A
|
|
138
|
+
the revert again on the new base, three times at most. A failed revert
|
|
139
|
+
push that the base holds after a fetch counts as landed, and a fetch that
|
|
140
|
+
fails leaves the revert reported as failed. A resume
|
|
139
141
|
that stopped while the checks of a landed commit ran waits for them
|
|
140
142
|
again, even when more commits landed on the base since, and a fix that
|
|
141
143
|
was committed but not landed lands first. A problem that the reviewer
|
package/dist/git-land.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fetchBase, git, oneFetchAtATime, remoteRef, revision, succeeds } from './git.mjs';
|
|
1
|
+
import { fetchBase, git, isOnBase, oneFetchAtATime, remoteRef, revision, succeeds, } from './git.mjs';
|
|
2
2
|
import { commitEverything } from './git-commit.mjs';
|
|
3
3
|
export const PUSH_TRIES = 3;
|
|
4
4
|
export async function squashOnto(cwd, base, remote, message) {
|
|
@@ -44,8 +44,9 @@ async function pushRevert(cwd, revert) {
|
|
|
44
44
|
return false;
|
|
45
45
|
}
|
|
46
46
|
await git(cwd, ['commit', '--no-verify', '-m', message]);
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
const reverted = await revision(cwd);
|
|
48
|
+
if ((await pushToBase(cwd, remote, base)) || (await isOnBase(cwd, base, remote, reverted))) {
|
|
49
|
+
await git(cwd, ['revert', '--no-commit', reverted]);
|
|
49
50
|
await git(cwd, ['commit', '--no-verify', '-m', reapply]);
|
|
50
51
|
await git(cwd, ['checkout', '-B', branch]);
|
|
51
52
|
return true;
|