From b23a4a7b72df66ce5cfe835991099975cf2d8b91 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 22 Jun 2023 12:34:39 +0200 Subject: [PATCH] chore: add script for generating list of external contributors Related: https://github.com/libp2p/blog/pull/84. Pull-Request: #4095. Co-Authored-By: Thomas Eizinger --- scripts/list-external-contributors.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/list-external-contributors.sh diff --git a/scripts/list-external-contributors.sh b/scripts/list-external-contributors.sh new file mode 100755 index 00000000000..baf3ee032bf --- /dev/null +++ b/scripts/list-external-contributors.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Usage: ./scripts/list-external-contributors.sh + +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"