added dev type
make dev default, indacates a change for a project that is currently in dev version bump
This commit is contained in:
parent
4c32582ad5
commit
7fc5426cc8
@ -26,6 +26,7 @@ COMMIT_TYPES = [
|
||||
'ci',
|
||||
'chore',
|
||||
'revert',
|
||||
'dev',
|
||||
]
|
||||
|
||||
|
||||
@ -85,7 +86,7 @@ def _run_git_add(args: list[str]) -> int:
|
||||
def git_add() -> int:
|
||||
add_parser = argparse.ArgumentParser()
|
||||
add_parser.add_argument('-m', '--message', required=True, help='Message to add')
|
||||
add_parser.add_argument('--type', choices=COMMIT_TYPES, default='feat', help='The type of the change')
|
||||
add_parser.add_argument('--type', choices=COMMIT_TYPES, default='dev', help='The type of the change')
|
||||
|
||||
args, rest = add_parser.parse_known_args()
|
||||
if args.message and (_run_git_add(rest) == 0):
|
||||
|
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "git-changes"
|
||||
version = "0.0.2"
|
||||
version = "0.0.3"
|
||||
authors = [
|
||||
{name="Adwaith-Rajesh", email="me@adwaith.dev"}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user