提交 4e6954c9 作者: Jeromy Johnson 提交者: GitHub

Merge pull request #4136 from ipfs/feat/misc/zcash-is-being-used

misc: add feat/zcash to go-ipfs-archived exemption
...@@ -13,6 +13,7 @@ api_repo="repos/$org/$repo" ...@@ -13,6 +13,7 @@ api_repo="repos/$org/$repo"
exclusions=( exclusions=(
'master' 'master'
'release' 'release'
'feat/zcash'
) )
gh_api_next() { gh_api_next() {
...@@ -20,7 +21,7 @@ gh_api_next() { ...@@ -20,7 +21,7 @@ gh_api_next() {
echo "$links" | grep '; rel="next"' >/dev/null || return echo "$links" | grep '; rel="next"' >/dev/null || return
link=$(echo "$links" | grep '; rel="next"' | sed -e 's/^<//' -e 's/>.*//') link=$(echo "$links" | grep '; rel="next"' | sed -e 's/^<//' -e 's/>.*//')
curl $auth -f -sD >(gh_api_next) $link curl $auth -f -sD >(gh_api_next) "$link"
} }
gh_api() { gh_api() {
...@@ -49,7 +50,7 @@ git remote add archived "git@github.com:$org/$arch_repo.git" || true ...@@ -49,7 +50,7 @@ git remote add archived "git@github.com:$org/$arch_repo.git" || true
cat <(active_branches) <(pr_branches) <((IFS=$'\n'; echo "${exclusions[*]}")) \ cat <(active_branches) <(pr_branches) <((IFS=$'\n'; echo "${exclusions[*]}")) \
| sort -u | comm - <(origin_refs | sort) -13 |\ | sort -u | comm - <(origin_refs | sort) -13 |\
while read ref; do while read -r ref; do
git push archived "origin/$ref:refs/heads/$ref/$(date --rfc-3339=date)" git push archived "origin/$ref:refs/heads/$ref/$(date --rfc-3339=date)"
git push origin --delete "$ref" git push origin --delete "$ref"
done done
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论