| Post Reply | RetroFed Forum Forum Index » Code Review |
| Author | Message | ||
|---|---|---|---|
|
onlinepersona
programming.dev
onlinepersona@programming.dev Joined: 2023-09-01 |
Source forges like Gitlab, Gitea, Forgjo, Github, and others do not allow directly leaving comments on code. However, they all do allow leaving comments on pull/merge requests and individual commits. This unfortunately doesn't work for snippets like Gitlab Snippets, Github Gists, etc. . We can however use these to our advantage and use workarounds in order to make certain parts of our code reviewable: SnippetsCreate a repository to host your snippets (if you don't have one already), add your snippet of code as one commit to the repository (can be in a throwaway branch, the master branch, whatever). Share that commit link! Larger changesIf you have code that belongs together, it is already in your repository, and is spread out over multiple commits, fear not! Once again, you can use the power of temporary branches. With these methods you can even have your entire repo reviewed. A commit to review Create a new branch, delete the parts of the code you want reviewed, create a revert commit, and share that link! A PR to review This requires 2 branches. If you've read the steps above, you already know where this is going. Create a branch ( If you have other tips, share them! |
||
| 1 Original | |||
| Post Reply |
Back to top |