lkasjdlakjsd
This commit is contained in:
@@ -1096,6 +1096,25 @@ _mk_clean_list:
|
||||
|
||||
# === get/is/test ===
|
||||
|
||||
# just get-maintainers-for-packages-report $(cat)
|
||||
# just get-maintainers-for-packages-report $(xclip -o -sel clip)
|
||||
get-maintainers-for-packages-report +attrpaths: _packages_json
|
||||
#!/usr/bin/env -S bash -euo pipefail
|
||||
# TODO: deduplicate the python3XXPackage attributes
|
||||
declare -a attrpaths=()
|
||||
for attrpath in "$@"; do
|
||||
# filter "(attrname)" aliases from nixpkgs-review report
|
||||
if [[ "$attrpath" =~ "("*")" ]]; then
|
||||
echo >&2 "Skipping $attrpath"
|
||||
continue
|
||||
fi
|
||||
attrpaths+=("$attrpath")
|
||||
done
|
||||
attrpath_json=$(printf "%s\n" "${attrpaths[@]}" | jq -sR 'split("\n")|map(select(.==""|not))' -c)
|
||||
$JQ_GOJQ <packages.json --argjson attrs "$attrpath_json" '. as $pkgs | $attrs[] | . as $attr | $pkgs[.].meta.maintainers // [] | map(.github | "@\(.)") | join(" ") | "* \($attr): \(.)"' -r | sort -u
|
||||
|
||||
|
||||
# TODO: support teams
|
||||
#get-maintainers-for-packages *attrpaths: _maintainers_tsv
|
||||
get-maintainers-for-packages *attrpaths: _packages_json
|
||||
#!/usr/bin/env -S bash -euo pipefail
|
||||
@@ -1200,9 +1219,11 @@ enqueue-nixpkgs-review *$prs:
|
||||
readarray -td $'\n' prs < <( just _some_prs )
|
||||
[[ "${#prs[@]}" -ne 0 ]]
|
||||
fi
|
||||
|
||||
declare -a all_systems=( x86_64-linux aarch64-linux aarch64-darwin x86_64-darwin )
|
||||
declare -a systems=()
|
||||
readarray -td $'\n' systems < <( printf "%s\n" "${all_systems[@]}" | fzf --sync --layout=reverse --multi )
|
||||
|
||||
declare -a all_configs=(
|
||||
''
|
||||
# 'crossSystem = "aarch64-linux";' # TODO: doesn't work
|
||||
|
||||
Reference in New Issue
Block a user