-
-
Notifications
You must be signed in to change notification settings - Fork 358
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement cherry-pick #1849
base: main
Are you sure you want to change the base?
implement cherry-pick #1849
Conversation
@mojavelinux , @jcubic , @araknast Requesting your comments. |
First of all the tests didn't pass, you have Lint errors. Fix lint errors so we can see if the tests pass. They are executed with |
Thanks for your contribution, I need to check the code locally how the function works on real repo. |
Done. All tests passing now. |
Do you really need those options:
Can you just name them |
I still have some refactoring to do. Those were left-overs from the code for |
I'm not sure if the algorithm is correct or not. I don't know what actually cherry-pick should do. I will test locally and see what is the effect. |
Hey @jcubic , any updates? |
Sorry, I was busy. Didn't have time to test it locally. |
I just test it locally and it doesn't work correctly. I've got the message in the log but the file that I've modified didn't change in the repo. I think that you need to add the code to check if the current branch is I end up with this state:
and the same changes are in the commit. if I run I was testing using canonical git after calling cherry-pick to the current branch. Also, I would add a unit test to check if the working tree is clean and up to date after cherry pick. |
Got it. It works when the target branch is not the current branch. But, you are correct, I need to update the working tree when it is the current branch. I'll make the necessary changes. |
I'm adding a parameter to an existing command X:
src/api/X.js
(andsrc/commands/X.js
if necessary)__tests__/test-X.js
if possiblenpm run add-contributor
and follow the prompts to add yourself to the READMEI'm adding a new command:
src/api
(andsrc/commands
if necessary)src/index.js
__tests__/test-exports.js
src/__tests__
website/sidebars.json
website/versioned_sidebars/version-1.x-sidebars.json
npm run add-contributor
and follow the prompts to add yourself to the READMEShould close: #1736
Hey guys, at the moment this is a very basic and initial implementation of cherry-pick. I am yet to complete the implementation and update the documentation, but before that just wanted to get an opinion from you if the approach is indeed correct. I didn't want to spend effort in adding the tests and updating the documentation just to find out in the end that the basic approach itself is incorrect 馃槄.
I have added the cherryPick command in
api
andcommand
, and have also added a very simple and basic test case. I would really appreciate your feedback on the implementation so far.Thanks.