CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

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

Open JackieLuffyDesign opened this issue 2 years ago • 2 comments

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.

JackieLuffyDesign avatar Jun 01 '23 00:06 JackieLuffyDesign

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!

music1353 avatar Nov 27 '23 16:11 music1353