Pull Request (EN)

Concept

Mechanism for code review and integration of changes between branches

Definition

Pull Request is a mechanism for code review and integration where changes in a branch are proposed and discussed before being merged into the target branch. They allow team members to review code changes, provide feedback, and conduct discussions before the code is integrated into the main branch or another target branch. Pull Requests are a central element in many Git-based collaboration platforms like GitHub, GitLab and Bitbucket. They promote code quality through peer review and document decisions and changes in the code history.

Process

flowchart TD     A[Create Feature Branch] --> B[Make Code Changes]     B --> C[Commit Changes]     C --> D[Push to Remote Repository]     D --> E[Open Pull Request]     E --> F[Conduct Code Review]     F --> G{Feedback?}     G -->|Yes| H[Adjust Code]     H --> B     G -->|No| I[Merge into Target Branch]     I --> J[Close Pull Request] 

In Context

  • Typically used together with Git branching strategies such as GitFlow or GitHub Flow
  • Related to: Branch, Merge, Code Review, Continuous Integration
  • Example use case: A developer implements a new feature in a feature branch and creates a pull request to integrate the code into the develop branch
Quelle: AI Generated