ci/request-reviews: move get-code-owners to eval/compare

This moves the parsing of ci/OWNERS into the Nix sandbox. We also get
rid of checking out the nixpkgs repo another time in the reviewers
workflow - we already have everything we need in the eval/compare job.

The creation of owners.txt in this way is only temporary, it should
eventually be moved further, similar to how maintainers.json is
currently migrating to a maintainer map for the whole repo stored on the
target branch as artifact.
This commit is contained in:
Wolfgang Walther
2025-11-01 14:27:15 +01:00
parent 18ab6b721e
commit 3bef0dcf65
5 changed files with 40 additions and 130 deletions

View File

@@ -63,13 +63,6 @@ jobs:
permission-members: read
permission-pull-requests: write
- name: Determining code owner reviews
env:
REPOSITORY: ${{ github.repository }}
NUMBER: ${{ github.event.number }}
run: |
result/bin/request-code-owner-reviews.sh "$REPOSITORY" "$NUMBER" ci/OWNERS > owners.txt
- name: Log current API rate limits (github.token)
env:
GH_TOKEN: ${{ github.token }}
@@ -149,7 +142,7 @@ jobs:
# There appears to be no API to request reviews based on GitHub IDs
jq -r 'keys[]' comparison/maintainers.json \
| while read -r id; do gh api /user/"$id" --jq .login; done \
| cat owners.txt - \
| cat comparison/owners.txt - \
| GH_TOKEN="$APP_GH_TOKEN" result/bin/request-reviewers.sh "$REPOSITORY" "$NUMBER" "$AUTHOR"
- name: Log current API rate limits (app-token)