gitbot
v2.0.44
Published
Module containing convenience scripts against GitHub
Downloads
17
Readme
gitbot
Module containing convenience scripts against GitHub
Environment variables
GITBOT_GITHUB_TOKEN
: Access token against GitHub which needs to have read/write permissions on that repository
Usage
Install module globally:
npm install -g gitbot
Usage: gitbot [command]
Commands:
merge merge pull request and delete branch
help [cmd] display help for [cmd]
Options:
-h, --help output usage information
merge
Merges pull request and deletes branch.
Usage
Usage: gitbot merge [options]
Options:
-h, --help output usage information
-O, --owner <owner> repository owner
-R, --repository-name <repository name> repository name
-B, --branch-name <branch name> branch name
Example
$ gitbot merge -O john-doe -R awesome-repo -B feature/awesome-stuff
Contributing
- Create new branch and commit changes with corresponding tests
- Make a PR
- :pray: :clap:
Notes
This module uses the semantic-release automated package publishing. Which means that the commit messages are required to look in a certain way.
To ensure this pattern is enforced, we use pre-git which installs a commit-msg
hook.
Please read and understand what the types
mean and use them properly when committing and contributing.
The commit-msg
hook needs to know about your installed node
which means that if you use third party application when committing, like Tower, that application needs to know your PATH environment.
There are probably a lot of ways to solve this, but one that works is to open the application from the terminal: open /Applications/Tower.app
.