Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of an active development.
Before you submit your Pull Request (PR) consider the following guidelines:
-
Be sure that an issue describes the problem you're fixing, or documents the design for the feature you'd like to add. Discussing the design up front helps to ensure that we're ready to accept your work.
-
Fork the
bleenco/*
repo you want to work on. -
Clone your fork locally and name it
origin
. -
Add a new remote that points to the main bleenco organisational repository and name it
upstream
. -
Make your changes in a new git branch:
git checkout -b my-fix-branch master
-
Create your patch, including appropriate test cases.
-
Follow our Coding Rules.
-
Run the full test suite and ensure that all tests pass.
-
Commit your changes using a descriptive commit message that follows our commit message conventions.
git commit -a
Note: the optional commit
-a
command line option will automatically "add" and "rm" edited files.
- If you have more than one commit please squash them into one with a descriptive message.
git rebase -i HEAD~<number of commits>
- Replace "pick" with "s" from all commits except the first. Save (:wq!).
- Comment "#" all the commit messages except the one you want to have. You can also change the message here. Save (:wq!).
- If you think there should be two commits, please open up another PR for the second one
-
Push your branch to GitHub:
git push origin my-fix-branch
-
In GitHub, send a pull request to
bleenco/*:master
.
- If we suggest change or your branch is behind upstream/master then:
-
Make the required updates.
-
Re-run the test suites to ensure tests are still passing.
-
Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
git fetch upstream git rebase upstream/master git push -f
-
That's it!
After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:
-
Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
git push origin --delete my-fix-branch
-
Check out the master branch:
git checkout master -f
-
Delete the local branch:
git branch -D my-fix-branch
-
Update your master with the latest upstream version:
git rebase upstream/master