跳到主要内容

Pull Request and Issue Association

During the development process, it is often necessary to associate Pull Requests (PRs) with Issues to better track code changes and their underlying requirements or resolved issues.

Why Associate Pull Requests and Issues?


  1. Improve Traceability: PRs can directly point to related Issues, providing clearer context.
  2. Enhance Collaboration: Team members can view discussions and decisions related to specific Issues within the PR.

How to Associate PRs and Issues


  1. When creating a new PR, we can click "Link issue" in the bottom right corner to select the Issue we want to associate.

image-20250102144939807

  1. We can also choose "Close linked issue on merge," so when our PR is merged, this Issue will be closed accordingly.

image-20250102145721103

  1. Effectively associating Pull Requests with Issues can significantly improve team collaboration and project maintainability.