diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index 21411aac..c54e1476 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -783,6 +783,12 @@ def main() -> None: default=False, help="Create a pull request with the changes", ) + parser.add_argument( + "--matrix-notification", + action=argparse.BooleanOptionalAction, + default=False, + help="Send a matrix notification", + ) parser.add_argument("--paste", action="store_true") parser.add_argument( "-j", "--processes", type=int, default=multiprocessing.cpu_count() @@ -868,7 +874,8 @@ def main() -> None: "\nAutoupdate dashboard: https://apps.yunohost.org/dash?filter=autoupdate" ) - appslib.logging_sender.notify(matrix_message, "apps", markdown=True) + if args.matrix_notification: + appslib.logging_sender.notify(matrix_message, "apps", markdown=True) print(paste_message) diff --git a/maintenance.sh b/maintenance.sh index 1ebd0b26..cb06e9a0 100755 --- a/maintenance.sh +++ b/maintenance.sh @@ -61,7 +61,7 @@ autoupdate_app_sources() { update_apps_repo update_apps_cache venv/bin/python3 autoupdate_app_sources/autoupdate_app_sources.py \ - -l .apps -c .apps_cache --latest-commit-weekly --edit --commit --pr --paste -j1 + -l .apps -c .apps_cache --latest-commit-weekly --edit --commit --pr --paste -j1 --matrix-notification } # shellcheck disable=SC2034