lezeh 0.1.1

Commands for lazy people like me
Documentation

Install

Building manually

make install

Setup

First create config file at ~/.lezeh, we're using Hjson format.

{
  # As of now, you just need to set phab config,
  # please see https://github.com/sendyhalim/phab for more details
  phab: {
    api_token: ...,
    pkcs12_path: ...,
    host: yourphabricatorhost.com,
    pkcs12_password: ...,
  },
  ghub: {
    # This is your github personal token,
    # you need to register token with full repository write access.
    api_token: abc123
  },
  deployment: {
    repositories: [
      {path: "/path/to/your/team/repo-a", github_path: "organization-name/foo"}
      {path: "/path/to/your/team/repo-b", github_path: "organizationA-name/bar"}
    ]
  }
}

Usage

# This merge-all command will
# 1. Make sure your local master and remote branch is updated
# 2. For all remote branches that contains the given branch names:
#    - Print out phabricator task owner (assigned) for that specific branch.
#    - Create local branch.
#    - Rebase onto master.
#    - Merge the local branch to master.
#
# Note: you do not need to give full branch name, it will match by substring.
lezeh deployment merge-all <branch> <branch>