Here are the guidelines we'd like you to follow to contribute to this project:
- Commit Message Guidelines
- Development Setup
- Issues and Bugs
- Feature Requests
- Issue Submission Guidelines
- Pull Request Submission Guidelines
Each commit message consists of a mandatory type, scope, subject, and footer. This is a specific format:
<type>(<scope>): <subject> - <footer>
This allows the message to be easier to read on GitHub as well as in various git tools. Some examples:
feat(server): add API to go server - #559
fix(client): correct typo in readme - #274
chore(github): migrate travis ci/cd to gh actions - #4
docs(README): add unit test script
If the commit reverts a previous commit, it should begin with revert:
, followed by the subject, where it should say: this reverts commit <hash>.
, where the hash is the SHA of the commit being reverted. A commit with this format is automatically created by the git revert
command.
Must be one of the following:
feat
: A new featurefix
: A bug fixdocs
: Documentation only changesstyle
: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)refactor
: A code change that neither fixes a bug nor adds a featureperf
: A code change that improves performancetest
: Adding missing or correcting existing testschore
: Changes to the build process or auxiliary tools and libraries such as documentation generation
The scope will be specifying the place of the commit change; the focal point of new code or best description for where changes can be found.
You can use *
when the change affects more than a single scope.
The subject contains a succinct description of the change:
- don't capitalize the first letter
- kept under 50 characters
- no dot (.) at the end
The footer should contain reference GitHub Issues that this commit addresses.*
Before you submit your issue search the archive, maybe your question was already answered.
If your issue appears to be a bug, and hasn't been reported, open a new issue. Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues.
The "new issue" form contains a number of prompts that you should fill out to make it easier to understand and categorize the issue.
This document describes how to set up your development environment to build the Debately project.
Before you can build this project, you must install and configure the following dependencies on your machine:
-
Git: The Github Guide to Installing Git is a good source of information.
-
Node.js (LTS): The project uses use Node to generate the documentation, run a development web server, run tests, and generate distributable files. Depending on your system you can install Node either from source or as a pre-packaged bundle.
I recommend using nvm (or nvm-windows) to manage and install Node.js, which makes it easy to change the version of Node.js per project.
To contribute code to CodeHut, you must have a GitHub account so you can push code to your own fork thye CodeHub project repository and open Pull Requests in the repository.
To create a Github account, follow the instructions here. Afterwards, go ahead and fork the specific Accord Project repository.
It is good practice to always keep your origin/master
in sync with upstream/master
. You don’t have to, but it makes your life easier. Do your work in branches of your fork, and periodically sync up your master
with the master
of upstream
as follows. You should definitely do this before creating a pull request.
git checkout master
git fetch --all --prune
git rebase upstream/master
git push origin master
Before you submit your pull request consider the following guidelines:
-
First check whether there is an open Issue for what you will be working on. If there is not, open one up, including links to related Issues found for context.
-
Search for an open or closed Pull Request that relates to your submission. You don't want to duplicate effort, and you also want to include links to related Pull Requests found for context.
-
Create the development environment
-
Make your changes in a new git branch: techdocs
git checkout -b name/issue-tracker/short-description master
Name can be initials or GitHub username. An example of this could be:
git checkout -b sanketshevkar/i12/readme-update
-
Create your patch commit, including appropriate test cases.
-
Ensure you provide a DCO sign-off for your commits using the
--signoff
option of git commit. For more information see how this works. -
Commit your changes using a descriptive commit message that follows our commit message conventions. Adherence to the commit message conventions is required, because release notes are automatically generated from these messages.
git commit -a --signoff -m "<commit message here>"
Note: the optional commit
-a
command line option will automatically "add" and "rm" edited files. -
Before creating the Pull Request, ensure your branch sits on top of master (as opposed to branch off a branch). This ensures the reviewer will need only minimal effort to integrate your work by fast-fowarding master:
git rebase upstream/master
-
Last step before creating the Pull Request, package and run all tests a last time:
npm run test
-
Push your branch to GitHub:
git push origin name/issue-tracker/short-description
-
In GitHub, send a pull request to
<REPOSITORY>:master
by following our pull request conventions. This will trigger the check of the Contributor License Agreement.You can also amend the initial commits and force push them to the branch.
git rebase master -i git push origin name/issue-tracker/short-description -f
Thank you for your contributing!
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 name/issue-tracker/short-description
-
Check out the master branch:
git checkout master -f
-
Delete the local branch:
git branch -D name/issue-tracker/short-description
-
Update your master with the latest upstream version:
git checkout master git fetch --all --prune git rebase upstream/master git push origin master
CodeHut source code files are made available under the MIT License.
Accord Project CONTRIBUTE.md