Skip to content
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

How can i use codegpt when I review the other RD's merge request? #83

Open
JackieLuffyDesign opened this issue Jun 1, 2023 · 1 comment

Comments

@JackieLuffyDesign
Copy link

codegpt can review my code before commit. But i want to use codegpt to review the other RD's merge request. Do you have any suggestions?

Btw, this is cool project. Thanks a lot.

@music1353
Copy link

Hi, I'd like to share my use case with you! I believe it also serves as a small tip for code reviewing. The method involves branching out from the target branch and then performing a reset.

Here's a step-by-step guide:

  1. Let's say the target branch is fpm-1234. Start by checking it out: git checkout feature/fpm-1234.
  2. Create a new branch for reviewing: git checkout -b review/feature/fpm-1234.
  3. To find the last committed hash, run: git log --oneline --graph.
  4. Reset to the last commit using: git reset --soft {COMMIT_HASH}^.
  5. Now you can stage the changes casually and utilize codegpt.

I hope you find this useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants