added dev type

make dev default, indacates a change for a project that is currently in dev
version bump
This commit is contained in:
Adwaith-Rajesh 2025-08-23 21:44:01 +05:30
parent 4c32582ad5
commit 7fc5426cc8
No known key found for this signature in database
GPG Key ID: 07AE7AA27444C4DB
2 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,7 @@ COMMIT_TYPES = [
'ci', 'ci',
'chore', 'chore',
'revert', 'revert',
'dev',
] ]
@ -85,7 +86,7 @@ def _run_git_add(args: list[str]) -> int:
def git_add() -> int: def git_add() -> int:
add_parser = argparse.ArgumentParser() add_parser = argparse.ArgumentParser()
add_parser.add_argument('-m', '--message', required=True, help='Message to add') 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() args, rest = add_parser.parse_known_args()
if args.message and (_run_git_add(rest) == 0): if args.message and (_run_git_add(rest) == 0):

View File

@ -1,6 +1,6 @@
[project] [project]
name = "git-changes" name = "git-changes"
version = "0.0.2" version = "0.0.3"
authors = [ authors = [
{name="Adwaith-Rajesh", email="me@adwaith.dev"} {name="Adwaith-Rajesh", email="me@adwaith.dev"}
] ]