runas-gitflow-finish
Finish step for gitflow structure
Last updated 3 years ago by sbonacho .
ISC · Original npm · Tarball · package.json
$ cnpm install runas-gitflow-finish -g
SYNC missed versions from official npm registry.

Main Index:

Available Commands:

FLOWS

STEPS

hotfix::finish (Git Flow Finish)

[Index]

Description

Finish step execute main functionality of finish action Runas GitFlow methology.

"merge" Strategy

With this strategy the step try to merge targetBranch into actualBranch. if is OK try to delete actualBranch. Branch to delete is emmit as deletedBranch.

If any there is any conflict stop de execution until this conflict were solved.

"pullRequest" Strategy

first try to merge locally target branch with yours and then shows this message:

IMPORTANT: Make sure your changes have been pushed before make the pullRequest manually.

********************************** READ THIS **********************************

     Create a Pull Request manually and wait for resolution by responsible

 *******************************************************************************

Note: you can change the finish strategy of any repository by adding a .runas/runas.json file like this in your repository:

{
  "params" : {
    "strategy" : "pullRequest"
  }
}

Parameters

  • --strategy: String, default: merge, possibles (merge/pullRequest), establish merge strategy of the process.
  • --finishTargets: [Object], default see next section

finishTargets - configuration

By default is:

  "finishTargets": {
    "merger" : "develop",
    "feature" : "develop",
    "release" : "master",
    "hotfix" : "master"
  },

"release" : "master",  -> ${actualBranch} : ${targetBranch},
  • actualBranch: Is the name of the actual branch.
  • targetBranch: Is the name of the target branch that is going to be merged

Stages

check

git fetch -p & git pull

run

git branch --unset-upstream git checkout ${targetBranch} git pull git merge ${actualBranch} git branch -d ${actualBranch}

Emmit

Emit the name of the branch that is needed to be deleted.

actualBranch -> deletedBranch

Plugins

  • runas-plugin-scm-git

Current Tags

  • 0.1.0                                ...           latest (3 years ago)

1 Versions

  • 0.1.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |