跳到主要内容

Version

The Pull Requests version is a snapshot of the different commit statuses in a PR. If changes are needed during the review, you can continue to submit code in your own branch, with each submission creating a new version. This allows you to:

  1. Track the history of code changes: See how the code evolves in the PR, thus better understanding the development process of the code.
  2. Compare different versions: Easily compare different versions of the PR to see which code has been added, deleted, or modified.

View Versions


The basic steps for viewing versions are as follows:

  1. Click on "Pull Requests" after the project details page and select the PR whose version you want to view.

image-20250102093909204

  1. On the PR details page, click "File Changes" and then click "Latest Version" to view the PR's commit version.

image-20241231183804840

  1. You can select a historical version. Once a version is selected, you will see a comparison view between the current version and the selected version, with added lines displayed in green and deleted lines in red.