Skip to content

Commit

Permalink
chore: add script for generating list of external contributors
Browse files Browse the repository at this point in the history
Related: libp2p/blog#84.

Pull-Request: #4095.


  
Co-Authored-By: Thomas Eizinger <[email protected]>
  • Loading branch information
thomaseizinger authored Jun 22, 2023
1 parent b3f48ca commit b23a4a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/list-external-contributors.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/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"

0 comments on commit b23a4a7

Please sign in to comment.