[llvm] [Github Automation] Update Execute command (PR #81002)

Shourya Goel via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 19:25:49 PST 2024


================
@@ -616,22 +616,20 @@ def create_pull_request(
     def execute_command(self) -> bool:
         """
         This function reads lines from STDIN and executes the first command
-        that it finds.  The 2 supported commands are:
-        /cherry-pick commit0 <commit1> <commit2> <...>
-        /branch <owner>/<repo>/<branch>
+        that it finds.  The supported command is:
+        /cherry-pick< ><:> commit0 <commit1> <commit2> <...>
         """
         for line in sys.stdin:
             line.rstrip()
-            m = re.search(r"/([a-z-]+)\s(.+)", line)
+            m = re.search(r"/([a-z-]+)\s*:? *(.*)", line)
----------------
Sh0g0-1758 wrote:

Yes, I removed the if statement but did not change the regex appropriately. Also fixed another issue in the args command.

https://github.com/llvm/llvm-project/pull/81002


More information about the llvm-commits mailing list