diff options
| author | Joseph Herlant <herlantj@gmail.com> | 2018-04-23 20:09:37 -0700 |
|---|---|---|
| committer | Joseph Herlant <aerostitch@users.noreply.github.com> | 2018-04-24 07:56:26 -0700 |
| commit | 0fffd1877ea416d26ac4db8307d2299f835e35e3 (patch) | |
| tree | c77fb9130236437769e5d6a8370621afd94da460 /ci/generate_contributors.sh | |
| parent | 5482a3c2ce4a6ce63a9dd1090915e27a1ce8992d (diff) | |
| download | navit-0fffd1877ea416d26ac4db8307d2299f835e35e3.tar.gz | |
Update:CI:Use mailmap to cleanup the authors list
Diffstat (limited to 'ci/generate_contributors.sh')
| -rw-r--r-- | ci/generate_contributors.sh | 23 |
1 files changed, 2 insertions, 21 deletions
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]} |
