diff --git a/machines/gerd/services/notify/app.py b/machines/gerd/services/notify/app.py index 88dcd9d..2de7532 100644 --- a/machines/gerd/services/notify/app.py +++ b/machines/gerd/services/notify/app.py @@ -222,6 +222,18 @@ def index():
+ jq is very powerful, and can easily be used to turn webhook data into useful information in a notification.
+ Just append your `jq=
(.total_commits | tostring)
++ " commits pushed to "
++ .repository.full_name
++ "\n\n" +
+ # format commits
+ ([.commits.[]
+ | "- "
+ + (.message | gsub("[\n\t]"; ""))
+ + " (" + .author.name + ")" ]
+ | join("\n"))
++ "\n\n"
++ "Changes: " + .compare_url
+