llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Accept /branch: and /cherry-pick: commands

Open tbaederr opened this issue 3 years ago • 8 comments

This is implemented in llvm/utils/git/github-automation.py.

People can't write /cherry-pick: foobar, because the colon breaks the script. The same is true for /branch.

tbaederr avatar Aug 18 '23 13:08 tbaederr

Hi!

This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:

  1. Assign the issue to you.
  2. Fix the issue locally.
  3. Run the test suite locally. 3.1) Remember that the subdirectories under test/ create fine-grained testing targets, so you can e.g. use make check-clang-ast to only run Clang's AST tests.
  4. Create a git commit
  5. Run git clang-format HEAD~1 to format your changes.
  6. Submit the patch to Phabricator. 6.1) Detailed instructions can be found here

For more instructions on how to submit a patch to LLVM, see our documentation.

If you have any further questions about this issue, don't hesitate to ask via a comment on this Github issue.

@llvm/issue-subscribers-good-first-issue

llvmbot avatar Aug 18 '23 13:08 llvmbot

@llvm/issue-subscribers-infrastructure

llvmbot avatar Aug 18 '23 13:08 llvmbot

This is implemented in llvm/utils/git/github-automation.py.

People can't write /cherry-pick: foobar, because the colon breaks the script. The same is true for /branch.

Error: Command failed due to missing milestone.

llvmbot avatar Aug 18 '23 13:08 llvmbot

Hey, I'm new to llvm and fairly competent with python. I'd love to take this up. I think I see the issue in the file mentioned. What is the expected behaviour here exactly? Currently, I see that the implemented regex does not support having colons in the command, only lowercase letters and hyphens. Are colons the only thing we are looking to support or is there anything else?

PranavReddyP16 avatar Aug 31 '23 19:08 PranavReddyP16

Only colons is fine for now.

tbaederr avatar Sep 01 '23 03:09 tbaederr

Hi , is the issue still open. I am fairly new to LLVM, but decently proficent in Python and would like to try to resolve this issue. Can this issue be assigned to me please? Thanks.

Shanchax avatar Nov 06 '23 04:11 Shanchax

Hello, I looked at the issue and I believe I can solve it. Can you please assign me the issue, @tbaederr.

Sh0g0-1758 avatar Jan 09 '24 06:01 Sh0g0-1758

@tbaederr @tstellar , I have created a PR for this issue. Please review it.

Sh0g0-1758 avatar Feb 07 '24 15:02 Sh0g0-1758