BAM Collapsing
1.0.0
1.0.0
  • Introduction
  • Quickstart
  • Inputs Description
  • Tool Descriptions
  • Outputs Description
  • Github Specifications
    • Contributor Covenant Code of Conduct
    • Contributing
    • ISSUE_TEMPLATE
Powered by GitBook
On this page
  • Setup Development Environment
  • Git User
  • Version Control
  • Master
  • Next
  • Branches
  • Hotfix
  • Commits
  • Code Review
  • Merge Branch
  • Your First Pull Request

Was this helpful?

  1. Github Specifications

Contributing

PreviousContributor Covenant Code of ConductNextISSUE_TEMPLATE

Last updated 5 years ago

Was this helpful?

Setup Development Environment

Git User

  1. Tell Git who you are

git config --global user.name "Your Name"
git config --global user.email "example@address.com"

Version Control

Master

The master branch should be considered the most up-to-date stable version of the software. No active development should take place on directly master and the latest commit should always be tagged to a release.

Next

The next branch should be considered the most up-to-date development version of the software. No active development should take place on directly on next.

  • next should be rebased with master after a hotfix

Branches

All development should happen on a branch off of next. Branch names should include a ticket number if possible: TICKET-##-couple-words or my-update.

git checkout -b TICKET-11-my-feature
  • Branches should be rebased with next if they get out of date.

Hotfix

Commits

  • Commit messages should make it easy for some one to scan through a commit log and understand the current state of the code.

  • When only changing documentation, include [ci skip] in the commit description

  • Consider starting the commit message with an applicable emoji:

    • :tada: :tada: for the initial commit

    • :green_heart: :green_heart: when fixing the CI build

    • :white_check_mark: :white_check_mark: when adding tests

    • :arrow_up: :arrow_up: when upgrading dependencies

    • :arrow_down: :arrow_down: when downgrading dependencies

    • :shirt: :shirt: when removing linter warnings

    • :recycle: :wrench: when refactoring

    • :wrench: :wrench: when updating tooling

    start with one of the following emojis to add your commit to the change log:

    • :racehorse: :racehorse: when improving performance

    • :sparkles: :sparkles: when adding a new feature

    • :bug: :bug: when fixing a bug

    • :books: :books: when adding documentation

    • :globe_with_meridians: :globe_with_meridians: when adding internationalization

  • you can use multiple emojis but only with first will be considered when generating the change log

Examples

Commits have the following structure:

:icon: [TICKET-1,TICKET-2] one line description

Longer description
- list of changes
- one more thing

Examples of valid commits:

:sparkles: [TICKET-1,TICKET-2] adds new page to that page

Adds new feature to do that thing that we wanted to do:
- That one thing it does
- that other thing it does
:bug: [TICKET-1] fixes bug with thing
:racehorse::wrench: better production mode
:shirt: fixes eslint in tests

Code Review

  • All branches should be pushed to Github for code review.

  • All branches need to be reviewed and signed-off before they can be considered complete.

  • Any branches containing significant changes will also need to be QA'ed.

Merge Branch

When merging use the Squash and Merge option:

Before merging you are free to squash commits locally if you want more control over the commit message.

Your First Pull Request

  1. clone the repo

  2. repeat as necessary

  3. wait for the CI system to test your branch

References:

  • Heavly inspired by other repositories on github

should be branched off of master

All should be branched off of next

Branches should be into next when they are completed.

A hotfix is a that uses master as a base instead of next.

you can look at for inspiration

After a branch has been it can be merged.

alt text

create a new

do some

your changes

push changes to Github for

rebase into your branch and deal with any conflicts.

get someone to on your branch

into

gitmoji
https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Squashing-Commits
https://github.com/blog/2141-squash-your-commits
Contributing
Setup Development Environment
Git User
Version Control
Master
Next
Branches
Hotfix
Commits
Examples
Code Review
Merge Branch
Your First Pull Request
Git User
Master
Next
Branches
Commits
Code Review
Hotfix
development
merged
branch
reviewed
branch
work
commit
review
next
review and sign-off
merge
next