diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-03-11 10:33:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-11 10:33:57 -0400 |
commit | a8ef147b6141e480a309bdf27b6e0cac4f26ab18 (patch) | |
tree | 0aee6b4a197945746f8fc1c03dc3e7736f9fbf05 | |
parent | a4d64e21f376be42b78d4a45d804f72dbba30fb0 (diff) | |
download | vyos-cloud-init-a8ef147b6141e480a309bdf27b6e0cac4f26ab18.tar.gz vyos-cloud-init-a8ef147b6141e480a309bdf27b6e0cac4f26ab18.zip |
Introduce and use of a list of GitHub usernames that have signed CLA (#244)
The list so far is partial.
-rw-r--r-- | .github/workflows/cla.yml | 17 | ||||
-rw-r--r-- | tools/.github-cla-signers | 1 |
2 files changed, 15 insertions, 3 deletions
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 389eccb8..8a0b2c07 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -24,6 +24,17 @@ jobs: Thanks, Your friendly cloud-init upstream EOF - grep -q ': \"${{ github.event.pull_request.user.login }}\"' ./tools/.lp-to-git-user && \ - echo "Thanks ${{ github.event.pull_request.user.login }} for signing cloud-init's CLA" || \ - (cat unsigned-cla.txt && exit 1) + + has_signed() { + username="$1" + grep -q ": \"$username\"" ./tools/.lp-to-git-user && return 0 + grep -q "^$username$" ./tools/.github-cla-signers && return 0 + return 1 + } + + if has_signed "${{ github.event.pull_request.user.login }}"; then + echo "Thanks ${{ github.event.pull_request.user.login }} for signing cloud-init's CLA" + else + cat unsigned-cla.txt + exit 1 + fi diff --git a/tools/.github-cla-signers b/tools/.github-cla-signers new file mode 100644 index 00000000..48ac33e4 --- /dev/null +++ b/tools/.github-cla-signers @@ -0,0 +1 @@ +dhensby |