Skip to content

Commit 97430b6

Browse files
committed
Update
[ghstack-poisoned]
1 parent aee35f9 commit 97430b6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/scripts/propose_ghstack_orig_pr.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,11 @@ def create_prs_for_orig_branch(pr_stack: List[int], repo: Repository):
9494
orig_branch_merge_head = pr.base.ref.replace("base", "orig")
9595
bot_metadata = f"""This PR was created by the merge bot to help merge the original PR into the main branch.
9696
ghstack PR number: https://github.com/pytorch/executorch/pull/{pr.number}
97-
^ Please use this as the source of truth for the PR number to reference in comments
97+
^ Please use this as the source of truth for the PR details, comments, and reviews
9898
ghstack PR base: https://github.com/pytorch/executorch/tree/{pr.base.ref}
9999
ghstack PR head: https://github.com/pytorch/executorch/tree/{pr.head.ref}
100100
Merge bot PR base: https://github.com/pytorch/executorch/tree/{orig_branch_merge_base}
101-
Merge bot PR head: https://github.com/pytorch/executorch/tree/{orig_branch_merge_head}
102-
\nOriginal PR body:\n
103-
"""
101+
Merge bot PR head: https://github.com/pytorch/executorch/tree/{orig_branch_merge_head}"""
104102

105103
existing_orig_pr = repo.get_pulls(head="pytorch:" + orig_branch_merge_head, base=orig_branch_merge_base, state="open")
106104
if existing_orig_pr.totalCount > 0:
@@ -111,7 +109,7 @@ def create_prs_for_orig_branch(pr_stack: List[int], repo: Repository):
111109
base=orig_branch_merge_base,
112110
head=orig_branch_merge_head,
113111
title=pr.title,
114-
body=bot_metadata + pr.body,
112+
body=bot_metadata,
115113
)
116114
# Advance the base for the next PR
117115
orig_branch_merge_base = orig_branch_merge_head

0 commit comments

Comments
 (0)