0.16.0 • Published 6 years ago
@tomas.brambora/git-trigger-build v0.16.0
git list-prs
Tool to help you easily trigger a CI build for your current branch.
Installation
Run
npm i -g @tomas.brambora/git-trigger-build
Then in your repo run git config github.apiKey <YOUR_GITHUB_API_KEY>
(you can get GH api key from GitHub settings page).
Usage
Run git trigger-build
in your repo to trigger a build for the current branch (it will find the relevant GitHub PR and post a check-merge
comment that triggers the build).
Note: This tool only works if you're pushing to the origin
remote (and there's currently no way to configure that).
Options
-l, --list
: Lists all your open PRs for the current repository and allows you to pick one to trigger build for.-o, --open
: Open the GitHub PR page in your default browser after triggering the build.-o, --merge
: Automatically merge the PR after the build passes
Usage
Run git trigger-build
to trigger a CI build (via a GitHub PR comment) for the PR for the current branch.