Guidelines
Project organization
- We only use one branch for the project:
master
branch. - Tag will be created to mark stable release.
- Bug fix or Hot fix branches should be created for fixing bugs and merged into
master
when ready.
Info
we don't use master
- development
branch for monorepo. Instead we use
<servicename>/<workitem>
such as api/add-health-endpoint
, and those
branches will be merged into master eventually.
Project name in repositories
We define project name with prefix svc/fe in repositories.
- svc-
<yourawesomeproject-api>
If your project contain backend APi such a microservice. - fe-
<yourawesomeproject-frontend>
If a frontend project. <yourawesomeproject>
Left blank if doesn't contain frontend or backend.
Opening a new issue
- Look through existing issues to see if your issue already exists. So we don't have duplicate issue.
- If your issue already exists, comment on its thread with any information you have. Even if this is simply to note that you are having the same problem, it is still helpful!
- Always be as descriptive as you can.
- What is the expected behavior? What is the actual behavior? What are the steps to reproduce?
- Attach screenshots, videos, GIFs if possible.
- Include
<project>
version or branch experiencing the issue. - Include OS version experiencing the issue.
Submitting a pull request
- Find an issue to work on, or create a new one. Avoid duplicates, please check existing issues!
- Fork the repo, or make sure you are synced with the latest changes on
master
. - Create a new branch with a sweet name:
git checkout -b project-name/[issue/work items]
. - Do code.
- Plese follow PEP8
- Please watch your line length. It's advised to limit under 80 char.
- Write unit tests when applicable.
- Don't break unit tests or functionality.
- Update the documentation header comments if needed.
- Rebase on
master
branch and resolve any conflicts before submitting a pull request! - Submit a pull request to the
master
branch. Make sure to add yourself to AUTHORS file.
Info
Start the title with WIP:
to prevent a Work In Progress merge request from being merged before it's ready.
Close issue
Tag an issue start with close #<issue_number>
on your pull request description.
Issue will close automatically when pull request merged succesfully.
Restricted Rule
- Dont create new branch except from master.
- Dont create pull request except to master.
- Define prefix
WIP:
to avoid project owner merge your code if you not done yet. - Perhaps if you still change your code and unmerge pull request,
edit your pull request title with prefix
WIP:
- You should not commit and push your code to others existing pull request. Do it for your pull request only!
Important
Creating new branch without rebasing from master will miss some latest code. Before continue on your working branch, always fetch first and rebase with master. Still confuse with this? Check git tips and ticks here.
First time setup
Please refer to instalation guide and running test suitein each project.