diff --git a/list-all-pr-and-branches.sh b/list-all-pr-and-branches.sh new file mode 100755 index 0000000..f23ad98 --- /dev/null +++ b/list-all-pr-and-branches.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +cd .. +for item in *; do + if [[ -d "$item" ]]; then + cd "${item}" || exit + git fetch -p + echo "---*** List status of PRs and branches in $item ***---" + for branch_name in $(git branch -r | grep -v '\->' | sed 's/origin\///' | grep -v 'master' | grep -v 'main' | grep -v 'migration-to-kotlin'); do + echo "- Project $item, Branch exists!: $branch_name" + done + if git status | grep -q "nothing to commit, working tree clean" ; then + echo "- Nothing to commit!"; + else + git status; + fi + cd .. + fi +done +cd project-signer || exit diff --git a/update-all-prs.sh b/update-all-prs.sh index 906f80c..e9433a4 100755 --- a/update-all-prs.sh +++ b/update-all-prs.sh @@ -5,7 +5,7 @@ cd .. for item in *; do if [[ -d "$item" ]]; then cd "${item}" || exit - echo "---*** Accept PR Makefile command found in $item ***---" + echo "---*** Updating PRs in project $item ***---" if git ls-remote --exit-code --heads "$remote_name" "master"; then master_branch="master" fi @@ -18,7 +18,7 @@ for item in *; do git pull git fetch -p for branch_name in $(git branch -r | grep -v '\->' | sed 's/origin\///' | grep -v 'master' | grep -v 'main' | grep -v 'migration-to-kotlin'); do - echo "Processing branch: $branch" + echo "Processing branch: $branch_name" if [ -n "${master_branch}" ]; then git checkout "${branch_name}" git merge origin/"${master_branch}" --no-edit