Skip to content

Update the contributors list #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .mailfilter
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This is a list of `shasum` hashed email addresses which are filtered from CONTRIBUTORS.txt, typically for privacy.
# Lines can be generated by running `echo -n 'My Name <my@email>' | shasum | head -c 40`.

3 changes: 2 additions & 1 deletion .mailmap
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Patrick Freed <[email protected]> <[email protected]>
Patrick Freed <[email protected]> <[email protected]>
Chris McGee <[email protected]> <[email protected]>
31 changes: 31 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,40 @@
For the purpose of tracking copyright, this is the list of individuals and
organizations who have contributed source code to swiftly.

For employees of an organization/company where the copyright of work done
by employees of that company is held by the company itself, only the company
needs to be listed here.

## COPYRIGHT HOLDERS

- Swift Server Work Group
- Apple Inc. (all contributors with '@apple.com')

### Contributors

- Adam Fowler <[email protected]>
- Alexander <[email protected]>
- Chris McGee <[email protected]>
- Danny Mösch <[email protected]>
- Danny Pang <[email protected]>
- Johannes Weiss <[email protected]>
- Joseph Heck <[email protected]>
- Joseph Heck <[email protected]>
- Kenta Kubo <[email protected]>
- Kenta Kubo <[email protected]>
- Mahdi Bahrami <[email protected]>
- Mark O <[email protected]>
- Max Desiatov <[email protected]>
- Mishal Shah <[email protected]>
- Paris <[email protected]>
- Patrick Freed <[email protected]>
- Paul LeMarquand <[email protected]>
- Rauhul Varma <[email protected]>
- Yuta Saito <[email protected]>
- Yutaka <[email protected]>
- johnbute <[email protected]>
- vsarunas <[email protected]>

**Updating this list**

Please do not edit this file manually. It is generated using `./Utilities/generate_contributors_list.sh`. If a name is misspelled or appearing multiple times: add an entry in `./.mailmap`
35 changes: 33 additions & 2 deletions scripts/generate_contributors_list.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,50 @@
#!/usr/bin/env bash
#!/bin/bash
##===----------------------------------------------------------------------===##
##
## This source file is part of the Swift open source project
##
## Copyright (c) 2025 Apple Inc. and the Swift project authors
## Licensed under Apache License v2.0 with Runtime Library Exception
##
## See http://swift.org/LICENSE.txt for license information
## See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
##
##===----------------------------------------------------------------------===##

set -eu
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
contributors=$( cd "$here"/.. && git shortlog -es | cut -f2 | sed 's/^/- /' )
contributor_list=$( cd "$here"/.. && git shortlog -es | cut -f2 )
filtered_hashes=$( cat "$here/../.mailfilter" | grep -E '^[a-z0-9]+$' | sort )

NL=$'\n'

contributors=''
while IFS= read -r line; do
hashed="$(echo -n "$line" | shasum | head -c 40)"
found_hash=$(comm -12 <(echo "$hashed") <(echo "$filtered_hashes"))
if [ ! -z "$found_hash" ]; then
continue
fi
contributors="${contributors}- $line$NL"
done <<< "$contributor_list"

cat > "$here/../CONTRIBUTORS.txt" <<- EOF
For the purpose of tracking copyright, this is the list of individuals and
organizations who have contributed source code to swiftly.

For employees of an organization/company where the copyright of work done
by employees of that company is held by the company itself, only the company
needs to be listed here.

## COPYRIGHT HOLDERS

- Swift Server Work Group
- Apple Inc. (all contributors with '@apple.com')

### Contributors

$contributors
**Updating this list**

Please do not edit this file manually. It is generated using \`./scripts/generate_contributors_list.sh\`. If a name is misspelled or appearing multiple times: add an entry in \`./.mailmap\`
EOF