diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py index eac5816b5499f..090359b8822a7 100755 --- a/llvm/utils/git/github-automation.py +++ b/llvm/utils/git/github-automation.py @@ -572,12 +572,12 @@ 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 <...> - /branch // + /cherry-pick<:> commit0 <...> + /branch<:> // """ for line in sys.stdin: line.rstrip() - m = re.search(r"/([a-z-]+)\s(.+)", line) + m = re.search(r"/([a-z-]+)(?::)?\s(.+)", line) if not m: continue command = m.group(1)