Update a |pr|
Important
Updating a |pr| invalidates all previous reviews, and the status set by each reviewer. This means all reviewers need to review and approve the |pr| again.
If you have made changes on the fork or branch from where a |pr| originates, you can update the |pr|, using the following steps:
- Commit and push your changes to the |RCE| server.
- Open the |pr| you wish to update, and select the :guilabel:`Update commits` button.
![Update Pull Request](/u/ewong/rhodecode-enterprise-ce-fork/raw/5a024fcfafa44309e3155a9a6a5b760cd017bdf8/docs/images/update-pr-button.png)
Once updated the following commit message will be automatically added to the |pr|.
:guilabel:`Auto status change to "Under Review", pull request updated with 1 added, 0 removed commits.`
- Review the new commit messages and changes as before,
- Set the review status and click :guilabel:`Comment`
Inline Comments
When updating a |pr|, inline comments can move around depending on which line they are attached:
- If the line content changes but remains in place, the inline comment will remain where it was originally.
- If the line to which the inline comment is attached moves, the comment will move with it.
- If the diff changes substantially and the line to which the comment was attached is no longer in the diff, the inline comment will be hidden but with an icon to display it if necessary.