@@ -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.
9696ghstack 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
9898ghstack PR base: https://github.com/pytorch/executorch/tree/{ pr .base .ref }
9999ghstack PR head: https://github.com/pytorch/executorch/tree/{ pr .head .ref }
100100Merge 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- \n Original 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