Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Apr 25, 2024
1 parent 85f5185 commit 95d9b56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/unprivileged-owners.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ while read -r -a fields; do
done < <(cd "$root"; codeowners) |
sort -u > "$tmp/codeowners"

echo "Code owners are:"
cat "$tmp/codeowners"

# Get all users with push access
gh api \
-H "Accept: application/vnd.github+json" \
Expand All @@ -36,6 +39,9 @@ gh api \
--jq '.[].login' |
sort > "$tmp/collaborators"

echo "Collaborators are:"
cat "$tmp/collaborators"

# Figure out all the owners that aren't collaborators
readarray -t unprivilegedOwners < <(comm -23 "$tmp/codeowners" "$tmp/collaborators")

Expand Down

0 comments on commit 95d9b56

Please sign in to comment.