Skip to content

Commit b23a4a7

Browse files
chore: add script for generating list of external contributors
Related: libp2p/blog#84. Pull-Request: #4095. Co-Authored-By: Thomas Eizinger <[email protected]>
1 parent b3f48ca commit b23a4a7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/list-external-contributors.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# Usage: ./scripts/list-external-contributors.sh <TAG>
4+
5+
set -e
6+
7+
date_of_tag=$(git log -1 --format=%aI --date=iso-strict $1)
8+
unique_authors=$(gh api "repos/libp2p/rust-libp2p/commits?since=$date_of_tag" --paginate -q '.[].author.login' | sort -u)
9+
rust_libp2p_maintainers_team_members=$(gh api teams/6797340/members --paginate | jq -r '.[].login' | sort -u)
10+
11+
echo "$unique_authors" | grep -vxF -f <(echo "$rust_libp2p_maintainers_team_members") | grep -vF "bot" | grep -vF "web-flow"

0 commit comments

Comments
 (0)