Skip to content

Accept /branch: and /cherry-pick: commands #80838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 23 commits into from
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b98f02d
Fix : more detailed no expected directive message
Sh0g0-1758 Jan 16, 2024
6074d28
ran git clang formatter
Sh0g0-1758 Jan 16, 2024
ab3c0f7
[Github Automation] : Add support for optional colon after /cherry-pi…
Sh0g0-1758 Jan 16, 2024
53a25bf
Removed Unnecesary Comments
Sh0g0-1758 Jan 17, 2024
727b479
Removed Unrelated Changes
Sh0g0-1758 Jan 17, 2024
56a4212
refactor : Change position of '' and revert tests in indexer.test
Sh0g0-1758 Jan 17, 2024
75c02db
Fix : Added Support for -verify= and -verify={multi diagnostics}, rev…
Sh0g0-1758 Jan 19, 2024
b8fd4ab
Ran clang formatter
Sh0g0-1758 Jan 19, 2024
e61fef0
Updated Diagnostic error string builder logic
Sh0g0-1758 Jan 23, 2024
ac5d2da
Updated directives to Directive
Sh0g0-1758 Jan 24, 2024
bd5b580
retrigger checks
Sh0g0-1758 Jan 26, 2024
c192bdd
Reformat Directive to Err_Directive to get checks passed
Sh0g0-1758 Jan 26, 2024
ed752f6
Revert
Sh0g0-1758 Jan 26, 2024
7380990
Revert back to original change
Sh0g0-1758 Jan 26, 2024
55d8f40
Ran clang formatter
Sh0g0-1758 Jan 26, 2024
23158f2
Merge branch 'llvm:main' into main
Sh0g0-1758 Jan 31, 2024
d52d433
Removed {} in the logic builder
Sh0g0-1758 Jan 31, 2024
cadac6c
Added test for changes
Sh0g0-1758 Jan 31, 2024
a938283
Refactored Tests
Sh0g0-1758 Jan 31, 2024
c5bfa56
Fixed regex
Sh0g0-1758 Feb 6, 2024
6bed370
Refactored Regex
Sh0g0-1758 Feb 6, 2024
959eb50
Added new line at end of test file
Sh0g0-1758 Feb 6, 2024
eae08fc
Merge branch 'llvm:main' into 64803
Sh0g0-1758 Feb 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions llvm/utils/git/github-automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,16 +603,16 @@ 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)
args = m.group(2)
args = m.group(3)

if command == "cherry-pick":
arg_list = args.split()
Expand Down