File size: 495 Bytes
f0f4f2b |
1 2 3 4 5 6 7 8 9 10 11 12 |
#!/bin/bash
# Usage: ./scripts/list-external-contributors.sh <TAG>
set -e
date_of_tag=$(git log -1 --format=%aI --date=iso-strict $1)
unique_authors=$(gh api "repos/libp2p/rust-libp2p/commits?since=$date_of_tag" --paginate -q '.[].author.login' | sort -u)
rust_libp2p_maintainers_team_members=$(gh api teams/6797340/members --paginate | jq -r '.[].login' | sort -u)
echo "$unique_authors" | grep -vxF -f <(echo "$rust_libp2p_maintainers_team_members") | grep -vF "bot" | grep -vF "web-flow"
|