+1
ci/default.nix
+1
ci/default.nix
+43
ci/request-reviews/default.nix
+43
ci/request-reviews/default.nix
···
+7
ci/request-reviews/dev-branches.txt
+7
ci/request-reviews/dev-branches.txt
+87
ci/request-reviews/get-reviewers.sh
+87
ci/request-reviews/get-reviewers.sh
···+# https://docs.github.com/en/rest/pulls/review-requests?apiVersion=2022-11-28#request-reviewers-for-a-pull-request+warn -e "\e[33mCodeowner \"$entry\" for file $file is not valid: Must start with \"@\"\e[0m" >&2
+97
ci/request-reviews/request-reviews.sh
+97
ci/request-reviews/request-reviews.sh
···+# We only need the commit history, not the contents, so we can do a tree-less clone using tree:0+# https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/#user-content-quick-summary+git clone --bare --filter=tree:0 --no-tags --origin upstream "${extraArgs[@]}" https://github.com/"$baseRepo".git "$tmp"/nixpkgs.git+# Only fetch into a remote ref, because the local ref namespace is used by Nixpkgs, don't want any conflicts+if ! "$SCRIPT_DIR"/verify-base-branch.sh "$tmp/nixpkgs.git" "$headRef" "$baseRepo" "$baseBranch" "$prRepo" "$prBranch" | tee "$tmp/invalid-base-error" >&2; then+"$SCRIPT_DIR"/get-reviewers.sh "$tmp/nixpkgs.git" "$baseBranch" "$headRef" "$ownersFile" "$prAuthor" > "$tmp/reviewers.json"
+103
ci/request-reviews/verify-base-branch.sh
+103
ci/request-reviews/verify-base-branch.sh
···+git -C "$localRepo" branch --list --format "%(refname:short)" "${devBranchPatterns[@]}" > "$tmp/dev-branches"+echo "The PR's base branch is set to $baseBranch, but $extraCommits commits from the $testBranch branch are included. Make sure you know the [right base branch for your changes](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#branch-conventions), then:"+echo "- If the changes should go to the $testBranch branch, [change the base branch](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-base-branch-of-a-pull-request) to $testBranch"+echo "- If the changes should go to the $baseBranch branch, rebase your PR onto the merge base with the $testBranch branch:"