Reviewing output on Git branches

A refactor job writes its result to a new branch. Review the changes on the job page and on the branch, test the code, and then merge the branch yourself. Code Migrator never opens a pull request and never merges its branch.

  • The job has ended. Its status is SUCCESS, FAILED, or CANCELLED. The branch of a cancelled job contains only the iterations that were completed before the cancel, and might contain none.
  • You have the cma-migrator or cma-admin role.
  1. On the Refactor page, click the job.
    The Refactor details page opens.
  2. On the Results tab, check the result of the job.
    When the job pushed its changes, the tab displays the Result commit.
  3. Click the Planned Changes tab to see the plan of the job, with the code before and after each change.
  4. Click the Code Changes tab to see the changes of each iteration.
  5. In Agent Activity, select an iteration to see what the agents did in it, and the results of its build and validation.
  6. On the Results tab, click the commit hash next to Result commit.
    The commit opens in the built-in Git server, on the branch code-agent-branch-[***JOB-ID***].
  7. Clone the branch, and build and test the code in your own environment.
  8. Merge the branch into your code:
    • For a repository in the built-in Git server, merge the branch there.
    • For a repository that Code Migrator copied into the built-in Git server, push the branch to your own repository, and then open a pull request there.

You decide which changes reach your code. Until you merge the branch, your own branches do not change.