From 29c6e1e4632d8c84e0091996fcf1f84f49b10e12 Mon Sep 17 00:00:00 2001 From: katspaugh Date: Wed, 30 Nov 2022 14:47:18 +0100 Subject: [PATCH 1/6] Chore: add a CLA checking action --- .github/workflows/cla.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000000..9344d40f11 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,26 @@ +name: 'CLA Assistant' +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened, closed, synchronize] + +jobs: + CLAssistant: + runs-on: ubuntu-latest + steps: + - name: 'CLA Assistant' + if: github.base_ref != 'main' && ((github.event.comment.body == 'recheckcla' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target') + # Alpha Release + uses: gnosis/github-action@master + # GitHub token, automatically provided to the action + # (No need to define this secret in the repo settings) + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + path-to-signatures: 'signatures/version1/cla.json' + path-to-cla-document: 'https://safe.global/cla/' + branch: 'cla-signatures' + allowlist: lukasschor,mikheevm,rmeissner,germartinez,Uxio0,dasanra,francovenica,tschubotz,luarx,bot*,katspaugh,DaniSomoza,iamacook,yagopv,usame-algan,schmanu,DiogoSoaress,JagoFigueroa + empty-commit-flag: false + blockchain-storage-flag: false From e30a3fda029d67eb41d089c5e70f2fd2fb42115a Mon Sep 17 00:00:00 2001 From: katspaugh Date: Wed, 30 Nov 2022 14:47:58 +0100 Subject: [PATCH 2/6] Rm myself to test --- .github/workflows/cla.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 9344d40f11..86b6a3b390 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -21,6 +21,6 @@ jobs: path-to-signatures: 'signatures/version1/cla.json' path-to-cla-document: 'https://safe.global/cla/' branch: 'cla-signatures' - allowlist: lukasschor,mikheevm,rmeissner,germartinez,Uxio0,dasanra,francovenica,tschubotz,luarx,bot*,katspaugh,DaniSomoza,iamacook,yagopv,usame-algan,schmanu,DiogoSoaress,JagoFigueroa + allowlist: lukasschor,mikheevm,rmeissner,germartinez,Uxio0,dasanra,francovenica,tschubotz,luarx,bot*,DaniSomoza,iamacook,yagopv,usame-algan,schmanu,DiogoSoaress,JagoFigueroa empty-commit-flag: false blockchain-storage-flag: false From f2708ceaa7c4b8fb6ef4fa12403696b9a2f4a201 Mon Sep 17 00:00:00 2001 From: katspaugh Date: Wed, 30 Nov 2022 15:00:11 +0100 Subject: [PATCH 3/6] Refs --- .github/workflows/cla.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 86b6a3b390..6cbadb3b7e 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -10,17 +10,14 @@ jobs: runs-on: ubuntu-latest steps: - name: 'CLA Assistant' - if: github.base_ref != 'main' && ((github.event.comment.body == 'recheckcla' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target') - # Alpha Release + if: github.base_ref != 'refs/heads/main' && ((contains(github.event.comment.body, == 'CLA') || github.event_name == 'pull_request_target') uses: gnosis/github-action@master - # GitHub token, automatically provided to the action - # (No need to define this secret in the repo settings) env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: path-to-signatures: 'signatures/version1/cla.json' path-to-cla-document: 'https://safe.global/cla/' branch: 'cla-signatures' - allowlist: lukasschor,mikheevm,rmeissner,germartinez,Uxio0,dasanra,francovenica,tschubotz,luarx,bot*,DaniSomoza,iamacook,yagopv,usame-algan,schmanu,DiogoSoaress,JagoFigueroa + allowlist: lukasschor,mikheevm,rmeissner,germartinez,Uxio0,dasanra,francovenica,tschubotz,luarx,bot*,katspaugh,DaniSomoza,iamacook,yagopv,usame-algan,schmanu,DiogoSoaress,JagoFigueroa empty-commit-flag: false blockchain-storage-flag: false From 55a956f71cd96c8f5873f73b2495a0b4ad98e6f8 Mon Sep 17 00:00:00 2001 From: katspaugh Date: Wed, 30 Nov 2022 15:04:41 +0100 Subject: [PATCH 4/6] PR trigger --- .github/workflows/cla.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 6cbadb3b7e..af54b25bf4 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -1,16 +1,16 @@ name: 'CLA Assistant' + on: issue_comment: types: [created] - pull_request_target: - types: [opened, closed, synchronize] + pull_request: jobs: CLAssistant: runs-on: ubuntu-latest steps: - name: 'CLA Assistant' - if: github.base_ref != 'refs/heads/main' && ((contains(github.event.comment.body, == 'CLA') || github.event_name == 'pull_request_target') + if: github.base_ref != 'refs/heads/main' && (contains(github.event.comment.body, 'CLA') || github.event_name == 'pull_request') uses: gnosis/github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -18,6 +18,6 @@ jobs: path-to-signatures: 'signatures/version1/cla.json' path-to-cla-document: 'https://safe.global/cla/' branch: 'cla-signatures' - allowlist: lukasschor,mikheevm,rmeissner,germartinez,Uxio0,dasanra,francovenica,tschubotz,luarx,bot*,katspaugh,DaniSomoza,iamacook,yagopv,usame-algan,schmanu,DiogoSoaress,JagoFigueroa + allowlist: lukasschor,mikheevm,rmeissner,germartinez,Uxio0,dasanra,francovenica,tschubotz,luarx,bot*,DaniSomoza,iamacook,yagopv,usame-algan,schmanu,DiogoSoaress,JagoFigueroa empty-commit-flag: false blockchain-storage-flag: false From 9bba4f8d3e7441e601e9ec143d3b522b722f6f88 Mon Sep 17 00:00:00 2001 From: katspaugh Date: Wed, 30 Nov 2022 15:20:43 +0100 Subject: [PATCH 5/6] Tweak the if --- .github/workflows/cla.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index af54b25bf4..c2fb68d29e 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -2,7 +2,7 @@ name: 'CLA Assistant' on: issue_comment: - types: [created] + pull_request: jobs: @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: 'CLA Assistant' - if: github.base_ref != 'refs/heads/main' && (contains(github.event.comment.body, 'CLA') || github.event_name == 'pull_request') + if: github.event_name == 'pull_request' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA' || github.event.comment.body == 'recheckcla' uses: gnosis/github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f606cfe841251cc5fd723f9ed53a41777ea349e0 Mon Sep 17 00:00:00 2001 From: katspaugh Date: Wed, 30 Nov 2022 15:39:24 +0100 Subject: [PATCH 6/6] Restore myself --- .github/workflows/cla.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index c2fb68d29e..2a09e3fca8 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -18,6 +18,6 @@ jobs: path-to-signatures: 'signatures/version1/cla.json' path-to-cla-document: 'https://safe.global/cla/' branch: 'cla-signatures' - allowlist: lukasschor,mikheevm,rmeissner,germartinez,Uxio0,dasanra,francovenica,tschubotz,luarx,bot*,DaniSomoza,iamacook,yagopv,usame-algan,schmanu,DiogoSoaress,JagoFigueroa + allowlist: lukasschor,mikheevm,rmeissner,germartinez,Uxio0,dasanra,francovenica,tschubotz,luarx,bot*,katspaugh,DaniSomoza,iamacook,yagopv,usame-algan,schmanu,DiogoSoaress,JagoFigueroa empty-commit-flag: false blockchain-storage-flag: false