Thanks for your contribution. The following is a set of guidlines and code commit procedures. Feel free to propose changes to this document in a pull request.
If you're contributing for the first time, configure your local git
- fork this repo
- clone your fork in your local
- confgure
upstreamremote for later sync.
git remote add upstream https://github.com/BV-BRC/bvbrc_website.git- whenever you need to sync your local
git checkout develop
git fetch upstream
git pull upstream developFor more detail, read here.
- Please lint your code. Keeping code convention highlights meaningful code changes and makes it easy to track and review. You can use IDE of your choice or git pre-commit hook.
- Add issue tag in the commit message if possible. for example, you can mention
resolves BV-BRC/issues#123in your commit message, which makes a link between the issue tracker and commit.
-- master : production + bug fixes -> https://www.bv-brc.org
-- develop : release ready commits + bug fixes -> https://beta.bv-brc.org
-- preview : working in progress. merged feature branches -> https://alpha.bv-brc.org
-- features/feature-xx: always branch from develop. delete after merging to develop
- master branch is inteded for production release. keep it simple and easy to rollback
- develop branch is for release preparation. Only release ready commits.
- preview branch is inteded for previewing internally. alpha site will look this branch.
If you're developing a new feature
- create a feature branch from
developbranch - branch name is preferred with a prefix
featuers/like,features/workspace2.0and send PR to the branch with same name - for internal review, ask git maintainer to merge into
previewbranch - when code is ready for release, the git maintainer will merge into
developbranch - delete feature branch
If you're making a bug fix
- pull request to
developbranch - add issue tag in the commit message or pull request message
If you're making a hot fix, which has to be deployed immediately.
- pull request to
developandmasterbranch
Refer to:
https://github.com/BV-BRC/bvbrc_website/blob/master/docs/README.md
Increment the version in ./package.json, following the semantic versioning specification, and commit the new build:
edit ./package.json // increment "version"
git add --all
git commit -m 'release js'
git push
Note: version is where the build is deployed and what is displayed in the UI.