From 0fffd1877ea416d26ac4db8307d2299f835e35e3 Mon Sep 17 00:00:00 2001 From: Joseph Herlant Date: Mon, 23 Apr 2018 20:09:37 -0700 Subject: Update:CI:Use mailmap to cleanup the authors list --- .mailmap | 35 +++++++++++++++++++++++++++++++++++ AUTHORS | 5 ++--- ci/generate_contributors.sh | 23 ++--------------------- 3 files changed, 39 insertions(+), 24 deletions(-) create mode 100644 .mailmap diff --git a/.mailmap b/.mailmap new file mode 100644 index 000000000..1f3ba9b08 --- /dev/null +++ b/.mailmap @@ -0,0 +1,35 @@ +Cedric Paille Cedric PAILLE +Charles Curley Charles Curley +gauthier60 Gauthier60 +Joseph Herlant Joseph Herlant +Marc Capdeville Marc CAPDEVILLE +Marc Capdeville mcapdeville +Patrick Höhn Patrick Höhn +Pierre Grandin Pierre GRANDIN +Pierre Grandin Pierre GRANDIN +Pierre Grandin Pierre Grandin +Pierre Grandin Pierre Grandin +Pierre Grandin kazer_ +Sebastian Leske Sebastian Leske +Sebastian Leske sleske +Stefan Wildemann Stefan Wildemann +Stefan Wildemann Stefan Wildemann +Stefan Wildemann Stefan Wildemann +Stefan Wildemann Wildemann Stefan +Michael Dankov Michael Dankov +Michael Dankov mdankov +Michael Dankov mdankov +youte62 youte62 +Johan Fitié Johan Fitié +jandegr jandegr +jkoan jkoan +mvglasow mvglasow +mvglasow mvglasow +mvglasow mvglasow +Manuel Hohmann xenos1984 +Manuel Hohmann xenos1984 +Rikky rikky +Robert Pohlink Robert Pohlink +Robert Pohlink pohlinkzei +Michael Farmbauer horwitz +Martin Schaller martin-s diff --git a/AUTHORS b/AUTHORS index ebcbb1054..f202302e7 100644 --- a/AUTHORS +++ b/AUTHORS @@ -27,7 +27,7 @@ bjasspa bodenseepingu bustersnyvel carcinoma -Cedric PAILLE +Cedric Paille christeck eiten gauthier60 @@ -41,6 +41,7 @@ kelvinzhao klausg korrosa latouche +Manuel Hohmann Martin Schaller mattcallow Michael Farmbauer @@ -49,7 +50,6 @@ norad OmegA_MRS pavel plum_ -rikky Rikky Robotaxi rphlx @@ -62,7 +62,6 @@ tegzed tinloaf woglinde worldcitizen -xenos1984 zaxl zintor zoff99 diff --git a/ci/generate_contributors.sh b/ci/generate_contributors.sh index fe1796cc1..b957d486d 100644 --- a/ci/generate_contributors.sh +++ b/ci/generate_contributors.sh @@ -6,29 +6,15 @@ set -e # output of the git log command. It splits the contributors in 2 groups: # * The "active contributors" are the contributors that authored commits over the last 2 years # * The "retired contributors" are the contributors that have authored commits but not over the last 2 years +# Note: it uses git's mailmap functionnality to get a clean list of users # ########################################################################################################### -# This map is used to map the old authors to the new ones to avoid duplicates -declare -A authorsMap=( - ["Pierre GRANDIN"]="Pierre Grandin" - ["kazer_"]="Pierre Grandin" - ["Patrick Höhn"]="Patrick Höhn" - ["Wildemann Stefan"]="Stefan Wildemann" - ["pohlinkzei"]="Robert Pohlink" - ["mdankov"]="Michael Dankov" - ["sleske"]="Sebastian Leske" - ["mcapdeville"]="Marc Capdeville" - ["Marc CAPDEVILLE"]="Marc Capdeville" - ["Gauthier60"]="gauthier60" - ["horwitz"]="Michael Farmbauer" - ["martin-s"]="Martin Schaller" -) declare -A CONTRIBUTORS=() declare -a authors=() TWO_YEARS_AGO=`date +%s --date="2 years ago"` retiredTitleWritten=false -git log --encoding=utf-8 --full-history --date=short "--format=format:%ad;%an" | +git log --encoding=utf-8 --full-history --date=short --use-mailmap "--format=format:%ad;%aN" | { echo "# Active contributors:" > AUTHORS while read -r line; do @@ -53,11 +39,6 @@ git log --encoding=utf-8 --full-history --date=short "--format=format:%ad;%an" | fi fi - # Remapping authors - if [ -n "${authorsMap[${author}]}" ]; then - author=${authorsMap[${author}]} - fi - # using the map as an easy way to check if the author has already been listed if [ -z "${CONTRIBUTORS[${author}]}" ]; then CONTRIBUTORS[${author}]=${arrLine[0]} -- cgit v1.2.1