Add note message type and improve messages

This commit is contained in:
2022-07-07 15:52:39 +00:00
parent 9a9caae923
commit fe6f34a3eb
8 changed files with 34 additions and 31 deletions

View File

@ -52,7 +52,7 @@ def init_repository(config):
g = git.cmd.Git(f"{config['ansible_path']}")
g.checkout(config["ansible_branch"])
g.submodule("update", "--init", env=dict(GIT_SSH_COMMAND=git_ssh_cmd))
notifications.send_webhook(config, "success", "Successfully initialized Git repository")
notifications.send_webhook(config, "success", "Successfully updated Git repository")
except Exception as e:
print(f"Error: {e}")