What is a pull request for?

12

I'm working as a team on bitbucket and would like to know what a pull request is for. At what times should we use this feature.

    
asked by anonymous 26.04.2017 / 19:17

2 answers

14

When you have several people working on the same base of text files, ideally each person has a copy of the code to work with. Do not just believe it because I'm saying, try to open a shared .doc file and edit it simultaneously with several other people. Then take a thick salt bath.

To organize teamwork, a thing called "version control" has long been created. Some older systems, such as Microsoft Source Safe and SVN, are popular today.

Version control systems that use git in general differ from older systems with a very specific functionality, called pull request . It's basically a way for you to say: I finished my work, I need to integrate it into the main branch and here's what I did. Using this functionality generates a server record (for example, GitHub , which is very popular) that highlights the code differences between the branch you worked on and the target branch of delivery. This makes it easy for the repository administrator to review your work. You can also start discussions on specific sections of the changes. Finally, git itself makes it easy to merge the code.

This encourages peer review and orderly team work, and in the case of open source projects it also encourages input from the community.

    
26.04.2017 / 19:34
10

Pull request is a mechanism where a developer can generate a notification that signals the completion of any feature development. This allows everyone involved to know that they need to merge the code into the main branch. In addition, changes to a forum for possible enhancements to the feature in question can be discussed.

See more at link

    
26.04.2017 / 19:26