From 196e5e551c52976f660a9cc6c3d408834d194362 Mon Sep 17 00:00:00 2001 From: Chojan Shang Date: Fri, 4 Jun 2021 02:20:47 +0800 Subject: [PATCH 1/2] [cla] add basic workflow Signed-off-by: Chojan Shang --- .github/workflows/cla.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 0000000000000..db373b81dee41 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,25 @@ +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.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + uses: cla-assistant/github-action@v2.1.3-beta + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # the below token should have repo scope and must be manually added by you in the repository's secret + PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + with: + # You do not need to create this file manually. + path-to-signatures: 'cla/signatures/version-1/cla.json' + path-to-document: 'https://github.com/datafuselabs/datafuse/blob/master/cla/agreements/DCLA.md' + # branch should not be protected + branch: 'master' + allowlist: datafuse-bot,dependabot* From b834831258e2d8dc6a0a0bded79a9d5e87c63484 Mon Sep 17 00:00:00 2001 From: Chojan Shang Date: Sat, 5 Jun 2021 17:41:02 +0800 Subject: [PATCH 2/2] [cla] update path and comment Signed-off-by: Chojan Shang --- .github/workflows/cla.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index db373b81dee41..71ca9e4c90a55 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "CLA Assistant" - if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I hereby agree to the terms of the CLA available at{{':'}} https://datafuse.rs/policies/cla/') || github.event_name == 'pull_request_target' uses: cla-assistant/github-action@v2.1.3-beta env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -18,8 +18,8 @@ jobs: PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} with: # You do not need to create this file manually. - path-to-signatures: 'cla/signatures/version-1/cla.json' - path-to-document: 'https://github.com/datafuselabs/datafuse/blob/master/cla/agreements/DCLA.md' + path-to-signatures: 'cla/signatures.json' + path-to-document: 'https://datafuse.rs/policies/cla/' # branch should not be protected branch: 'master' allowlist: datafuse-bot,dependabot*