Merge Requests
Merge Requests @ Development Guide:
- You should never create a merge request without creating a Issue, unless you are reverting or cherry picking a commit.
- The Description of all Merge Requests should use the Main Template provided.
- The Related Issue Section, simply add all the issues related to this merge request. If the Merge Request fulfills/achieves what the Issue(s) outlines please use one of the Keywords so the issue is automatically closed when the merge request is merged. GitLab Keywords.
- If the merge requets does not achieve / fulfills the Issue, please just mention the issue.
- The Related Issue Section, simply add all the issues related to this merge request. If the Merge Request fulfills/achieves what the Issue(s) outlines please use one of the Keywords so the issue is automatically closed when the merge request is merged. GitLab Keywords.
- Checks are run again on the code changes again when we review merge-requests.
- If not merged into the "main" branch please look at the reason why. Reviewers are not allowed to close and not merge a merge request without giving a valid reason. If you believe a reviewer has violated this rule please pm/dm
@j3zzaon GitLab. - The Main Branch should always be the target branch.
- Our default branch is always: "main".
- Tags are also protected branches.
Note
We do not "squash commits" at all.
What Labels to use?
Labels should represent what the merge request is adding/fixing/changing.
- If you are unsure use the same label from the Issue in the Merge Request.
Main Branch Rule:
- The Main Branch is protected and only Maintainers are allowed to merge or push (inc Merge & Push) to it.
Review Guide:
Are you reviewing merge requests? Well here is a quick guide.
Tip
Run uv run ruff check --fix to find and fix any issues.
- Check for Bugs.
- Code breaking bugs. (The code returns a code error)
- Logic Bugs. (Code does not act in the way intended)
- Database Bugs / Issues.
- Check for security vunerablities.
- Check if the code is intented correctly
- Check to see if the code is following project standards.
- Check for documentation changes if required.