Skip to content

Commit

Permalink
Remove trailing period from automated commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed Jan 24, 2024
1 parent 0c53530 commit 5b00c2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gitbark/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def add_rules(ctx):
project = ctx.obj["project"]
add_commit_rules_interactive(project)
_confirm_commit(
commit_message="Modify commit rules (made by bark).",
commit_message="Modify commit rules (made by bark)",
manual_action=(
"The 'commit_rules.yaml' file has been staged. "
"Please commit the changes!"
Expand All @@ -144,7 +144,7 @@ def add_modules(ctx):
branch = project.repo.branch
add_modules_interactive(project)
_confirm_commit(
commit_message="Modify bark modules (made by bark).",
commit_message="Modify bark modules (made by bark)",
manual_action=(
"The 'bark_rules.yaml' file has been staged. Please commit the changes!"
),
Expand All @@ -166,7 +166,7 @@ def protect(ctx):
branch = project.repo.branch
add_branches_interactive(project, branch)
_confirm_commit(
commit_message="Modify bark modules (made by bark).",
commit_message="Modify bark modules (made by bark)",
manual_action=(
"The 'bark_rules.yaml' file has been staged. Please commit the changes!"
),
Expand Down
6 changes: 3 additions & 3 deletions gitbark/commands/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def setup(project: Project) -> None:
content=yaml.safe_dump(asdict(bark_rules), sort_keys=False),
)

_confirm_commit(commit_message="Add initial modules and rules (made by bark).")
_confirm_commit(commit_message="Add initial modules and rules (made by bark)")

active_branch = get_active_branch(project)
if active_branch: # checkout if we have an active branch
Expand All @@ -332,12 +332,12 @@ def setup(project: Project) -> None:

if not get_commit_rules(project):
add_commit_rules_interactive(project)
_confirm_commit(commit_message="Initial rules (made by bark).")
_confirm_commit(commit_message="Initial rules (made by bark)")

if branch != BARK_RULES_BRANCH and not branch_in_bark_rules_yaml(project, branch):
cmd("git", "checkout", BARK_RULES_BRANCH)
add_branches_interactive(project, branch)
_confirm_commit(f"Add {branch} to bark_rules (made by bark).")
_confirm_commit(f"Add {branch} to bark_rules (made by bark)")
cmd(
"git", "checkout", branch
) # run this if the commit was made in interactive mode
Expand Down

0 comments on commit 5b00c2c

Please sign in to comment.