作者:张新
Team members should be proactive to pick up the story and assign the corrsponing story to themselves, or the team lead will assign the stories to the team members
The owner of story must goes through the requiements and investivgates the story as soon as possible beforehand, making sure that you know what we need to build. Find the BA/QA if needed and should add your sub-tasks to the story
If necessary,
Coding based on your feature branches which is named as yourDomainAccount-ticket-concise-description, for example, bxong-ANE-41116-pagination-update
Once the story is assigned, the owner of story should mark the Assignee as yourself
If the SP is more than 13 or the story would touch our core code base(such as middlewares) or shared components, the owner should create the detailed design document
Dev depends on your time and deliverables, as well as considering more tiem for writing lots of tests
Test on your local box and make sure it's fully tested
Log your time and mark sub tasks(JIRA, GitLab issues) as closed after the code is completed
Commit code changes based on your feature branch
In terms of the Git commit message format, please refer to Git Commit Guidelines
Create Merge Request for Code Review
The point of our code review is to eliminate as many defects as possible, regardless of who caused the error. Also, we should strictly follow pre-commit code review.
While working on a new feature, Bill(for example) will cut a branch from the current version of our master and work exclusively on that branch, I'm sure most of you are familar with this approach. However, before Bill could reintegrate the changes into master, Shirly, Khalil or another qualified engineer must review his work and give him the stamp of approval: LGTM(looks good to me)
If Shirly or Khalil has an issue or problem with the way Bill has desinged or coded for the work, they should have a discussion until they reach an agreement. Or if Shirly has no issues or problems, she could LGTM the work right way.
Once the Code Review is done, accept merge request and remove the Code Review label
Most of time, you would see the merge conflicts, please resolve these merge conflicts beforehand. Recommend using
git rebase
to get a cleaner history.
Please make sure Remove source branch when merge request is accepted and Squash commits when merge request is accepted checkboxes are always checked whenever creating the MR. Because the source branch would be deleted once the MR is accepted, at the same time it would tidy up the
commit history of a branch when accepting a merge request. It applies all of the changes in the merge request as a single commit,
and then merges that commit using the merge method set for the project.
Mark the respective JIRA tasks as completed or done, then re-assgin the store to QA for testing.
You'd better add some helpful comments for testing, such as the project version, testing scope, unfinished tasks, etc.
Please make sure the master build is successful after your changes are merged
Please make sure you test your changes in integration environments(or local environement if not) after your changes are merged and update the MR
It’s a basic practice within software development to keep things that will have the same reason to change together and separate the things that have other reasons to change (Single Responsibility Principle). This same principle is applicable to MRs, thus it’s a good practice to limit them to a single feature (or reason to change):
Please keep it in mind and stick to it, otherwise maybe you need to pay the Pepsi.
In general, code should look like a series of paragraphs rather than one continuous blob of text. Blank lines should be used to separate related lines of code from unrelated lines of code. Blank lines should be used to separate related lines of code from unrelated lines of code. The goal is to make our code easy to read.
In general, it’s a good idea to also add blank lines:
网站内容许可证:公共领域(public domain)