diff --git a/gitfeatures/core.py b/gitfeatures/core.py index 7da6017..1840b58 100644 --- a/gitfeatures/core.py +++ b/gitfeatures/core.py @@ -208,7 +208,8 @@ def _get_branches(branch_type): def run(prefix, args): if len(args) and args[0].lower() == "new": - if prefix == "releasecandidate": + allowed_branch_types = ["releasecandidate", "stable", "release", "hotfix"] + if prefix in allowed_branch_types: if len(args) == 2: new_feature(args[1], prefix) else: diff --git a/scripts/git-hotfix b/scripts/git-hotfix index 24f65d8..4f99a71 100755 --- a/scripts/git-hotfix +++ b/scripts/git-hotfix @@ -3,4 +3,4 @@ import sys import gitfeatures -gitfeatures.run("hotfix", sys.argv[1:]) +gitfeatures.hotfix(sys.argv[1:]) diff --git a/scripts/git-release b/scripts/git-release new file mode 100755 index 0000000..81a223c --- /dev/null +++ b/scripts/git-release @@ -0,0 +1,6 @@ +#!/usr/bin/env python +import sys + +import gitfeatures + +gitfeatures.release(sys.argv[1:])