Contributions to this project are released to the public under the project's open source license.
This project adheres to a Code of Conduct. By participating, you are expected to uphold this code.
You will need:
- Go 1.11+
- Ruby 1.9+ with Bundler
- git 1.8+
- tmux & zsh (optional) - for running shell completion tests
If setting up either Go or Ruby for development proves to be a pain, you can
run the test suite in a prepared Docker container via script/docker
.
hub is a tool that wraps git to provide useful integration with GitHub. A new feature is a good idea for hub if it improves some workflow for a GitHub user.
- A feature that encapsulates a git workflow not specific to GitHub is not a good fit for hub, since something like that is best implemented as an external script.
- If you're proposing to add a new custom command such as
hub foo
, please research if there's a possibility that such a custom command could conflict with other commands from popular 3rd party git projects.
- Clone the project
- Verify that existing tests pass:
make test-all
- Create a topic branch:
git checkout -b feature
- Make your changes. (It helps a lot if you write tests first.)
- Verify that the tests still pass.
- Fork the project on GitHub:
make && bin/hub fork --remote-name=origin
- Push to your fork:
git push -u origin HEAD
- Open a pull request describing your changes:
bin/hub pull-request
Vendored Go dependencies are managed with go mod
.
Check go help mod
for information on how to add or update a vendored
dependency.
Go unit tests are in *_test.go
files and are runnable with make test
. These
run really fast (under 10s).
However, most hub functionality is exercised through integration-style tests written in Cucumber. See Features for more info.