This is an automated email from the ASF dual-hosted git repository.

kirs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 93c175bb7ec [Chore](cherry-pick-tool)Add PR number in PR body (#42652)
93c175bb7ec is described below

commit 93c175bb7ecbd0b355b8c92b041e24491006aad0
Author: Calvin Kirs <[email protected]>
AuthorDate: Mon Oct 28 21:58:09 2024 +0800

    [Chore](cherry-pick-tool)Add PR number in PR body (#42652)
    
    ## Proposed changes
    
    - Add PR number in PR body
    - After create pr, automatically comment 'run buildall' to trigger the
    test
---
 tools/auto-pick-script.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/auto-pick-script.py b/tools/auto-pick-script.py
index 2431c76c623..c8431b99d2b 100644
--- a/tools/auto-pick-script.py
+++ b/tools/auto-pick-script.py
@@ -89,11 +89,11 @@ try:
         # Create a new PR for the cherry-picked changes
         new_pr = repo.create_pull(
             title=f"{TARGET_BRANCH}: {pr.title}",  # Prefix with branch name
-            body=pr.body,  # Keep the original PR body
+            body=pr.body+ "\n Cherry-picked from #"+pr.number,  # Keep the 
original PR body
             head=new_branch_name,
             base=TARGET_BRANCH
         )
-
+        new_pr.create_issue_comment("run buildall")
         print(f"Created a new PR #{new_pr.number} for cherry-picked changes.")
     else:
         print(f"Commit {merge_commit_sha} was not found in {new_branch_name} 
after cherry-picking.")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to