Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion autoupdate_app_sources/autoupdate_app_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion maintenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading