Add triggerword support for completed runs
This commit is contained in:
@ -205,7 +205,7 @@ def read_config():
|
||||
)
|
||||
|
||||
# Get the Notifications configuration
|
||||
for key in ["enabled", "uri", "action", "icons", "body"]:
|
||||
for key in ["enabled", "uri", "action", "icons", "body", "completed_triggerword"]:
|
||||
try:
|
||||
config[f"notifications_{key}"] = o_notifications[key]
|
||||
except Exception:
|
||||
|
@ -38,6 +38,9 @@ def send_webhook(config, status, message):
|
||||
|
||||
logger.debug(f"Sending notification to {config['notifications_uri']}")
|
||||
|
||||
if status == "completed" and config["notifications_completed_triggerword"]:
|
||||
message = f"{message} {config['notifications_completed_triggerword']}"
|
||||
|
||||
# Get the body data
|
||||
body = config['notifications_body']
|
||||
formatted_body = dict()
|
||||
|
Reference in New Issue
Block a user