diff --git a/merge_helpers.sh b/merge_helpers.sh index ed479653..c6909ada 100755 --- a/merge_helpers.sh +++ b/merge_helpers.sh @@ -49,6 +49,14 @@ forelement_repos() { done } +for_main_repos() { + for repo in "matrix-js-sdk" "element-web" "element-desktop"; do + pushd "$SCHILDI_ROOT/$repo" > /dev/null + "$@" + popd > /dev/null + done +} + ensure_yes() { read -e -p "$1 [y/N] " choice diff --git a/push_current_sc_branches.sh b/push_current_sc_branches.sh index f7c7ec6e..86c8d94f 100755 --- a/push_current_sc_branches.sh +++ b/push_current_sc_branches.sh @@ -35,4 +35,4 @@ fi branch="$b_js" echo "Pushing to all repos: $branch" -forall_repos git push --set-upstream origin "$branch" "$@" +for_main_repos git push --set-upstream origin "$branch" "$@"