No suggestion button while clicking on a commit of the pull request #7128
Replies: 26 comments 6 replies
-
+1, never understood why this happens but feels like an oversight |
Beta Was this translation helpful? Give feedback.
-
+1 this is really annoying when reviewing PRs with many commits |
Beta Was this translation helpful? Give feedback.
-
Thank god I'm not the only one, anyone know a way to fix this? I no longer get the expected bar with the options! |
Beta Was this translation helpful? Give feedback.
-
I'm guessing the reason this doesn't exist is that the 'suggest changes' change can be immediately committed to the PR branch by the author via 'commit suggestion' -- but that might not be possible if the lines you're suggesting changes for don't exist in the overall changes of the PR (i.e. because they've been changed again in a later commit). I still think a 'suggest changes' at the per-commit level would be very useful in most cases (if the commit history is sane and doesn't overlap changes) rather than disabling it altogether -- a couple of potential ways to allow this might be:
EDIT: Just realised the OP was asking specifically about suggesting changes for the latest commit -- that could also be one of the scenarios where 'suggest changes' is allowed! |
Beta Was this translation helpful? Give feedback.
-
This feature ("just a simple button" ™️) would still be highly appreciated by me and my team. In this case it really feels like just a button, since the feature works perfectly when typing We are 1.5 year further since the original suggestion and still no answer from anyone from GitHub at all (as far as I can tell) 😞 |
Beta Was this translation helpful? Give feedback.
-
The Add code suggestion button is only available when you are checking "Files changed" which is the general view of all the commit changes |
Beta Was this translation helpful? Give feedback.
-
Seems like this button was removed between yesterday and today for me. It was very convenient, don't know why they did this. |
Beta Was this translation helpful? Give feedback.
-
Is the pull request already merged? If so, you can't add a suggestion after the fact. The button should still be there for open pull requests. |
Beta Was this translation helpful? Give feedback.
-
This functionality would be useful for commits and already-merged PRs. Yes, the "implement suggestion" won't work, but it's a useful way to show what the requested change is (vs explaining it with sentences). Github should simply remove the "implement" button when it's not relevant. |
Beta Was this translation helpful? Give feedback.
-
Note, you can just type the suggestion as a code block, e.g. |
Beta Was this translation helpful? Give feedback.
-
Hi Github team,
I'm trying to review the latest commit of a pull request, but there's no
Insert a suggestion
button in the comment field.Therefore, I have to use
```suggestion This is a suggestion.```
to add the suggestion.Is that an expected behavior? Or the users are expected to find the suggestion button through the tab
Files Changed
.Do you have any suggestions? Thanks!!
Behavior
Step 1. Click on the latest PR (so we don't have to go through changes in the previous review)
Step 2. Start a review and try to add a suggestion.
Feature Request
A suggestion button for reviewers to add suggestion to the commit of a PR like the one in tab
Files Changed
.Beta Was this translation helpful? Give feedback.
All reactions