fedc: Support commit-only arg through flathub.json

Fixes https://github.com/flathub-infra/flatpak-external-data-checker/issues/163
This commit is contained in:
bbhtt
2025-05-13 10:53:19 +05:30
parent 4e0cdd30d2
commit 47dbcad3a7
@@ -32,6 +32,10 @@ for repo in "${checker_apps[@]}"; do
if jq -e '."require-important-update"' < "$repo"/flathub.json > /dev/null; then
FEDC_OPTS+=("--require-important-update")
fi
# disable sending PRs and only commit
if jq -e '."fedc-commit-only" == true' < "$repo"/flathub.json > /dev/null; then
FEDC_OPTS+=("--commit-only")
fi
fi
if [[ -f $repo/${repo}.yml ]]; then