0.1.0 • Published 2 years ago

@gitlaber/cascade v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

CLI command implementing cascaded merge requests

The idea of this command came from couple feature proposals

Behind both of features I have in mind Gitlab Flow with environment branches approach

So this approach suggests moving changes to different environments by use of MRs. With numerous environments it may require large number of MRs to be created and I thought that it would be nice to automate MR creation/update process

Usage

Usage: gitlab cascade [options]

Create/Update cascaded merge request

Options:
  --project <projectPath>      Gitlab project path (default $CI_PROJECT_PATH)
  --source <sourceBranch>      Source branch (default $CI_COMMIT_BRANCH)
  --target <targetBranch>      Target branch
  --title <title>              Merge request title
  --description <description>  Merge request description
  -h, --help                   display help for command

This command has the following logic:

  • It tries to find the existing open merge requests between source and target branches
  • In case if there are no requests - it will create a new MR labeled as cascaded
  • In case if there are MRs - it will try to update existing MR's( only those labeled with cascaded ) with the provided title and description

This project also delivers an approximate template how this feature can be used.

| This command is a part of @giltaber/cli CLI