mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(maint): keep PR landing on squash
This commit is contained in:
@@ -225,7 +225,7 @@ merge_run() {
|
||||
}
|
||||
|
||||
if ! gh pr merge "$pr" \
|
||||
--rebase \
|
||||
--squash \
|
||||
--match-head-commit "$PREP_HEAD_SHA" \
|
||||
>.local/merge-output.log 2>&1
|
||||
then
|
||||
@@ -290,7 +290,7 @@ merge_run() {
|
||||
for attempt in 1 2 3; do
|
||||
if comment_output=$(
|
||||
{
|
||||
echo "Merged via rebase."
|
||||
echo "Merged via squash."
|
||||
echo
|
||||
echo "- Prepared head SHA: [$PREP_HEAD_SHA]($prep_sha_url)"
|
||||
echo "- Landed commit: [$landed_sha]($landed_sha_url)"
|
||||
|
||||
@@ -32,13 +32,13 @@ describe("scripts/pr wrappers", () => {
|
||||
expect(script).toContain('exec "$base" merge-run "$pr"');
|
||||
});
|
||||
|
||||
it("uses the repository-approved rebase landing method", () => {
|
||||
it("uses the repository-approved squash landing method", () => {
|
||||
const script = readScript("scripts/pr-lib/merge.sh");
|
||||
|
||||
expect(script).toContain("--rebase");
|
||||
expect(script).not.toContain("--squash");
|
||||
expect(script).toContain("Merged via rebase.");
|
||||
expect(script).not.toContain("Merged via squash.");
|
||||
expect(script).toContain("--squash");
|
||||
expect(script).not.toContain("--rebase");
|
||||
expect(script).toContain("Merged via squash.");
|
||||
expect(script).not.toContain("Merged via rebase.");
|
||||
});
|
||||
|
||||
it("keeps prepare wrapper modes delegated to the main PR helper", () => {
|
||||
|
||||
Reference in New Issue
Block a user