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
upstream
remote 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 develop
For 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#123
in 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
develop
branch - branch name is preferred with a prefix
featuers/
like,features/workspace2.0
and send PR to the branch with same name - for internal review, ask git maintainer to merge into
preview
branch - when code is ready for release, the git maintainer will merge into
develop
branch - delete feature branch
If you're making a bug fix
- pull request to
develop
branch - 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
develop
andmaster
branch
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.