How can i use codegpt when I review the other RD's merge request?
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.
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:
- Let's say the target branch is fpm-1234. Start by checking it out: git checkout feature/fpm-1234.
- Create a new branch for reviewing: git checkout -b review/feature/fpm-1234.
- To find the last committed hash, run: git log --oneline --graph.
- Reset to the last commit using: git reset --soft {COMMIT_HASH}^.
- Now you can stage the changes casually and utilize codegpt.
I hope you find this useful!
It may be integrated into the CI process, which requires CodeGPT to support external input of diff information or internal processing (such as internal requests for gitlab APIs). I was also thinking about how to use CodeGPT in similar scenarios.