Skip to content

Commit

Permalink
align stable, hotfix and release
Browse files Browse the repository at this point in the history
  • Loading branch information
martyzz1 committed Feb 16, 2022
1 parent 3b3a9ac commit 417b29a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gitfeatures/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion scripts/git-hotfix
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import sys

import gitfeatures

gitfeatures.run("hotfix", sys.argv[1:])
gitfeatures.hotfix(sys.argv[1:])
6 changes: 6 additions & 0 deletions scripts/git-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env python
import sys

import gitfeatures

gitfeatures.release(sys.argv[1:])

0 comments on commit 417b29a

Please sign in to comment.