-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Collaboration Procedures
Wenqi Li edited this page Jan 21, 2020
·
4 revisions
All code changes to the master branch must be done via pull requests.
- Create a new ticket or take a known ticket from the issue list.
- Check if there's already a branch dedicated to the task.
- If the task has not been taken, create a new branch named
[ticket_id]-[task_name]
. For example, branch name19-ci-pipeline-setup
corresponds to issue #19. Ideally, the new branch should be based on the latestmaster
branch. - Make changes to the branch (please use detailed commit messages if possible). If the changes introduce new features, make sure that you write unit tests.
- Create a new pull request from the task branch to the master branch, with detailed descriptions of the purpose of this pull request.
- Check the CI/CD status of the pull request, make sure all CI/CD tests passed.
- Wait for reviews.
- If there are reviews, (within 24 hours) make point-to-point responses, make further code changes if needed.
- Reviewer and contributor may have discussions back and forth until all comments addressed.
- Wait for the pull request to be merged.
- Coding-style is checked by these flake8 commands, using a flake8 configuration similar to those of pytorch project.
- License information: all source files should start with this paragraph:
# Copyright 2020 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
All review comments should be specific, constructive, "actionable".
- Check the CI/CD status of the pull request, make sure all CI/CD tests passed before reviewing (contact the branch owner if needed).
- Read carefully the descriptions of the pull request and the files changed.
- Write comments if needed.
- Make in-line comments to specific code segments, request for changes if needed.
- Review any further code changes until all comments addressed by the contributors.
- Merge the pull request to the master branch (ideally within 48 hours since the opening of the pull request).
- Close the corresponding task ticket on the issue list.