github

How can I manually add suggestions in code reviews on GitHub?


In GitHub it's possible to suggest code changes through inline comments in pull requests. But I always get the following error message: "suggestions cannot be applied while viewing a subset of changes".

Is there also a way to manually suggest changes in a comment?

Example: screenshot of problem


Solution

  • Besides the toolbar-button you can also add a suggestion within a comment by