Fork the openebs/openebs repository into your account, referred in the below instructions as $user.
working_dir=$GOPATH/src/github.com/openebs
mkdir -p $working_dir
cd $working_dir
Set user
to match your Github profile name:
for setting global configurations use -
git config --global user.name "your usernae here"
git config --global user.email "your email used in github account"
and for configuring locally use the above commands just remove the --global flag
user={your Github profile name}
git clone https://github.com/$user/openebs.git
cd openebs/
git remote add upstream https://github.com/openebs/openebs.git
git remote set-url --push upstream no_push
git remote -v
git checkout master
git fetch upstream master
git rebase upstream/master
git status
git push origin master
git branch <branch_name>
git checkout <branch_name>
git push --set-upstream origin <branch_name>
git checkout <branch-name>
git fetch upstream master
git rebase upstream/master
git status
git push
# make your changes
# keep fetching the commits from upstream master & rebase them here
git add -A
git commit -m "creating changes in local repository"
git push
# submit the PR to upstream from browser link https://github.com/$user/openebs
git push origin --delete <branch_name>
git branch -d <branch_name>
Though it is important to write unit tests, do not try to achieve 100% code coverage if it complicates writing these tests. If a unit test is simple to write & understand, most probably it will be extended when new code gets added. However, the reverse will lead to its removal on the whole. In other words, complicated unit tests will lead to decrease in the overall coverage in the long run.
OpenEBS being an OpenSource project will always try to experiment with new ideas and concepts. Hence, writing unit tests will provide the necessary checklist that reduces the scope for errors.
Go back to Contributing to OpenEBS.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )