lezeh
is a CLI tool to ease day-to-day engineering operations such as:
* Merging feature branch (by convention, specific using phabricator task number) into master,
this includes cleaning up (delete) the merged feature branch
* Merge and run deployment commands
Go to latest releases and download the binaries here
| Binary | OS |
| ------------------------------------ | ----- |
| lezeh-x86_64-unknown-linux-gnu.zip
| Linux |
| lezeh-x86_64-apple-darwin.zip
| macOS |
bash
make install
First create config file at ~/.lezeh
, we're using Hjson format.
```bash { # As of now, you just need to set phab config, # please see https://github.com/sendyhalim/phab for more details phab: { apitoken: ... pkcs12path: ... host: https://yourphabricatorhost.com pkcs12password: ... }, ghub: { # This is your github personal token, # you need to register token with a full repository write access. apitoken: abc123 },
# Deployment command config deployment: { repositories: [ { # This is a unique key that will be used as hashmap key # for the repo. key: "repo-key" path: "repo-local-path" githubpath: "username/reponame" deploymentschemebykey: { stg: { name: "Deploy to stg" defaultpullrequesttitle: "Merge into stg" mergefrombranch: "master" mergeintobranch: "stg" } prod: { name: "Deploy to prod" defaultpullrequesttitle: "Merge into prod" mergefrombranch: "stg" mergeintobranch: "prod" } } } ] } } ```
```bash
lezeh deployment merge-feature-branches
#
lezeh deployment deploy