Aras DevOps

Creating a Pull Request

A Pull request (PR) is a way for developers to propose changes to a codebase and collaborate with others to review and merge those changes. Some of the key features of a Pull request include:

  • Code Changes: A Pull request includes the changes made to the codebase by the developer. Other developers can view and review the changes, and any feedback or comments can be added directly to the Pull request.
  • Discussion and Feedback:Pull requests provide a platform for developers to discuss and give feedback on the proposed changes. This allows for collaborative review and discussion of the code, ensuring that any issues are caught and resolved before the changes are merged into the codebase.
  • Automated Tests:Pull requests can be configured to run automated tests, ensuring that the changes don’t break existing functionality. This helps to catch any issues early on before the code is merged into the codebase.
  • Reviewers:Pull requests can be assigned to specific reviewers who are responsible for reviewing the proposed changes. Reviewers can add comments and suggestions and approve or reject the changes before merging.
  • Status Checks:Pull requests can be configured to include status checks, verifying that the changes meet certain criteria before merging. For example, a status check might ensure that all automated tests pass or that the code meets certain coding standards.
  • Mergeability: Pull requests are merged into the codebase once reviewed and approved. This ensures that the changes are properly integrated into the codebase and that any conflicts with other changes are resolved.

The following steps outline the process of creating a Pull request:

  1. Navigate to https://dev.azure.com/{organization}/{project}.
  2. Click Repos and select Pull requests.

  1. Click the New pull request button.

The New pull request Form appears:

Enter the details as follows:

  1. Source Repo or Branch: User’s Fork.
  2. Target Repo or Branch: Team Repo.
  3. Review the Files and Commits to be included.
  4. Title and Description: User Story name.
  5. Select Reviewers.
  6. Add Work items to link: Identify Work Items in the Azure DevOps as applicable.
  7. Add Tags if needed.
  8. Click the Create button.