Skip to content

Commit

Permalink
chore(update) conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
floaterest committed Dec 31, 2023
1 parent 10468b0 commit e4946d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions update
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def main(args):
ext = path.splitext(args.src)[1]
dest = path.join(dest, domain, contest, task) + ext
if path.exists(dest):
act, copy = 'update', '\033[93mReplace\033[00m'
act, copy = 'refactor', '\033[93mReplace\033[00m'
else:
act, copy = 'add', '\033[92mCopy\033[00m'
act, copy = 'feat', '\033[92mCopy\033[00m'

# copy file
print(copy, args.src, '-->', dest)
Expand All @@ -53,7 +53,7 @@ def main(args):
system(f'git add {dest}')
comment = f' ({args.comment})' if args.comment else ''
task = f'{task}{ext}'
cmd = f'git commit -m "{act}({contest}) {task}{comment}" -m "{url}"'
cmd = f'git commit -m "{act}({contest}): {task}{comment}" -m "{url}"'
system(cmd)


Expand Down

0 comments on commit e4946d2

Please sign in to comment.