fix: refactor: extract push_to_forge() and webhook setup from bin/disinto into lib/forge-push.sh (#302) #318

Merged
dev-bot merged 2 commits from fix/issue-302 into main 2026-04-06 19:39:02 +00:00
Showing only changes of commit ce561b3745 - Show all commits

View file

@ -16,6 +16,7 @@
# =============================================================================
set -euo pipefail
# Assert required globals are set before using this module.
_assert_forge_push_globals() {
local missing=()
[ -z "${FORGE_URL:-}" ] && missing+=("FORGE_URL")
@ -27,7 +28,6 @@ _assert_forge_push_globals() {
exit 1
fi
}
_assert_forge_push_globals
# Push local clone to the Forgejo remote.
push_to_forge() {