code-review
code-review copied to clipboard
Support accept Suggested Change
trafficstars
I still couldn't find an easy way through GitHub API to accept a Suggestion Change.
What seems to be the recommended way is to create an actual new commit through API which is very very bad because it requires a Base64 encoding of the whole file changed which would imply that we need to fetch & checkout the project in order to get the correct file to be able to use it.
Not ideal at all. If someone finds a better way, I am all hears.
If the branch being reviewed is currently checked out (to the same commit), it would be natural (to me) to apply the suggestions to the working tree instead, and let user commit them manually.