Skip to content

Commit 366f4d8

Browse files
ludamadjohnathan79717AztecBotledwards2225
authored
feat: merge-train/barretenberg (#15337)
Co-authored-by: Jonathan Hao <jonathan@aztec-labs.com> Co-authored-by: AztecBot <tech@aztecprotocol.com> Co-authored-by: ledwards2225 <98505400+ledwards2225@users.noreply.github.com>
1 parent bffa781 commit 366f4d8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/merge-train-recreate.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@ jobs:
2929
run: |
3030
# The merge-train branch is the PR’s *head* branch (e.g. merge-train/main)
3131
MERGE_TRAIN_BRANCH="${{ github.event.pull_request.head.ref }}"
32-
BASE_BRANCH="${{ github.event.pull_request.base.ref }}"
32+
BASE_BRANCH="${{ github.event.pull_request.base.ref }}"
3333
3434
# Make sure a merge commit gets into master.
3535
git fetch origin "$BASE_BRANCH"
36-
git checkout "$BASE_BRANCH"
36+
git checkout "$BASE_BRANCH"
3737
git merge -X ours "$MERGE_TRAIN_BRANCH" -m "Merge $MERGE_TRAIN_BRANCH history."
38-
git push origin "$BASE_BRANCH"
38+
git push origin "$BASE_BRANCH"
3939
4040
git fetch origin "$MERGE_TRAIN_BRANCH" || true
4141
git checkout "$MERGE_TRAIN_BRANCH" || git checkout -b "$MERGE_TRAIN_BRANCH"
4242
git reset --hard "$BASE_BRANCH"
4343
44-
# Start with an empty commit
44+
# Start with an empty commit
4545
git commit --allow-empty -m "[empty] Start merge-train. Choo choo."
4646
4747
# Push & open the PR
48-
git push origin "$NEW_BRANCH"
48+
git push origin "$MERGE_TRAIN_BRANCH"
4949
5050
gh pr create \
51-
--base "$MERGE_TRAIN_BRANCH" \
52-
--head "$NEW_BRANCH" \
51+
--base "$BASE_BRANCH" \
52+
--head "$MERGE_TRAIN_BRANCH" \
5353
--title "feat: $MERGE_TRAIN_BRANCH" \
5454
--body "This is an automated merge-train PR with no commits."

0 commit comments

Comments
 (0)