UI/UX Design

How to make a Pull Request / Merge Request

If you’re using Bitbucket or Github is called Pull Request, but if you’re using GitLab is called Merge Request. These are basically the same thing with different names. This functionality gives people the ability to collaborate on their file changes.

For a Pull Request / Merge Request to be successful there are some simple rules which are ignored by many people.

What are the rules?

1. Find and read the Submission Guidelines in the project you want to contribute to.

2. Fork the project and clone it locally.

3. Never forget which is the main branch (usually called master) and create a new branch from that branch.

4. Give clear names to your branches so you know what changes they contain.

5. Create multiple commits rather than a single big commit. By doing this it will be easier to fix conflicts.

6. Don’t change multiple features in one branch. While working on one feature you might notice the name of another function is wrong or something else such a type or wrong indentation. Just create another branch for that.

7. Ā Follow the existing code style. If indentation is two spaces everywhere in the project try to follow that for your code. Pay attention to spacing, naming rules and others.

That’s all for now! Do you have any other suggestions? Please leave a comment below.

Andy

UI/UX Designer & Front-end Engineer based in Dublin currently working @IBM.
I write about: UI/UX Design, Javascript, HTML, CSS, React JS and React Native

Add comment