From aafdf3d09343cafa4beeb90ada3051dd1f39af35 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Thu, 25 Nov 2021 19:52:04 +0100 Subject: [PATCH] Update archive script Signed-off-by: Jakub Sztandera --- scripts/archive-branches.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/archive-branches.sh b/scripts/archive-branches.sh index 98fdfaeb8..b181184d0 100755 --- a/scripts/archive-branches.sh +++ b/scripts/archive-branches.sh @@ -9,6 +9,7 @@ api_repo="repos/$org/$repo" exclusions=( 'master' + 'main' ) gh_api_next() { @@ -43,7 +44,7 @@ active_branches() { git remote add archived "git@github.com:$arch_repo.git" || true -branches_to_move="$(cat <(active_branches) <(pr_branches) <((IFS=$'\n'; echo "${exclusions[*]}")) | sort -u | comm - <(origin_refs | sort) -13)" +branches_to_move="$(cat <(active_branches) <(pr_branches) <((IFS=$'\n'; echo "${exclusions[*]}")) | sort -u | comm - <(origin_refs | sort) -13 | grep -v -e '^release/' -e '^ntwk-')" echo "================" printf "%s\n" "$branches_to_move"