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 @springworks/gitbot
Usage: gitbot [options] [command]
Commands:
auto-merge merge pull request and delete branch
help [cmd] display help for [cmd]
Options:
-h, --help output usage information
auto-merge
Merges pull request and deletes branch.
Usage
Usage: gitbot-auto-merge [options]
Options:
-h, --help output usage information
-O, --owner <owner> repository owner
-R, --repository-name <repository name> repository name
-N, --pull-request-number <pull request number> pull request number
Example
$ gitbot auto-merge -O john-doe -R awesome-repo -N 40
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
.
Contributing
- Create new branch and commit changes with corresponding tests
- Make a PR
- :pray: :clap: