Skip to content

Commit 3b3ff5c

Browse files
authored
Mention the PR author in mergebot PRs (#8390)
Hopefully, this should help prevent mergebot PRs from being unnoticed by generating a GitHub notification to the author. Test Plan: Use ghstack to push a PR (get something like gh/kirklandsign/17/head). In .github/scripts/propose_ghstack_orig_pr.py, remove print("The PR (and stack above) is not merged yet, skipping") and return after it. Then python .github/scripts/propose_ghstack_orig_pr.py --repo pytorch/executorch --ref refs/heads/gh/kirklandsign/17/head
1 parent 8c9a42c commit 3b3ff5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/propose_ghstack_orig_pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def create_prs_for_orig_branch(pr_stack: List[int], repo: Repository):
101101
# gh/user/x/orig is the clean diff between gh/user/x/base <- gh/user/x/head
102102
orig_branch_merge_head = pr.base.ref.replace("base", "orig")
103103
bot_metadata = f"""This PR was created by the merge bot to help merge the original PR into the main branch.
104-
ghstack PR number: https://github.com/pytorch/executorch/pull/{pr.number}
104+
ghstack PR number: https://github.com/pytorch/executorch/pull/{pr.number} by @{pr.user.login}
105105
^ Please use this as the source of truth for the PR details, comments, and reviews
106106
ghstack PR base: https://github.com/pytorch/executorch/tree/{pr.base.ref}
107107
ghstack PR head: https://github.com/pytorch/executorch/tree/{pr.head.ref}

0 commit comments

Comments
 (0)