[llvm] Github Automation: Add support for an optional colon after command name (PR #66540)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 12:42:18 PDT 2023
llvmbot wrote:
<!--IGNORE-->
>
><!--LLVM PR SUMMARY COMMENT-->
>
>@llvm/pr-subscribers-github-workflow
>
><details>
><summary>Changes</summary>
>
>As requested in https://github.com/llvm/llvm-project/issues/64803
>
>example -> /cherry-pick: or /branch:
>
>---
>Full diff: https://github.com/llvm/llvm-project/pull/66540.diff
>
>
>1 Files Affected:
>
>- (modified) llvm/utils/git/github-automation.py (+3-3)
>
>
>``````````diff
>diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py
>index eac5816b5499f6a..090359b8822a73a 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 <commit1> <commit2> <...>
>- /branch <owner>/<repo>/<branch>
>+ /cherry-pick<:> commit0 <commit1> <commit2> <...>
>+ /branch<:> <owner>/<repo>/<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)
>
>``````````
>
></details>
Error: Command failed due to missing milestone.
https://github.com/llvm/llvm-project/pull/66540
More information about the llvm-commits
mailing list