Closed n8henrie closed 1 year ago
Sounds good to me. We can always un-archive if we really want. But certainly the 2014 and earlier ones should be archived.
Done for 2014 and earlier, gh api
made quick work of it. Feel free to unarchive any that shouldn't have been.
#!/usr/bin/env bash
set -Eeuf -o pipefail
shopt -s inherit_errexit
set -x
main() {
local slug url infile=$1
awk '$1 ~ /201[0-4]/ { print $2 }' "${infile}" |
while read -r url; do
: "${url#https://github.com/}"
slug="repos/${_}"
gh api \
--silent \
--method PATCH \
-H "Accept: application/vnd.github+json" \
"${slug}" \
--field archived=true
done
}
main "$@"
Mind if I archive https://github.com/quicksilver/Template-qsplugin? Looks like hasn't been updated in 11y and has generally been superseded by https://github.com/quicksilver/plugin_template; archiving makes it read-only and preserves it for reference but serves as meaningful communication to users.
Might want to also look at a few others:
EDIT: Hmmm... looks like https://github.com/quicksilver/Quicksilver/issues/2707 messed up my plan for automatically looking at the last updated time ¯\_(ツ)_/¯