From 28833ba769ef250364eff225bb915c2e87f77a26 Mon Sep 17 00:00:00 2001 From: Nan Wang Date: Tue, 5 Oct 2021 10:21:24 +0800 Subject: [PATCH] ci: fix cla --- .github/workflows/cla.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 9c8df30f2b69c..72d9b9de56bb2 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -11,16 +11,21 @@ jobs: runs-on: ubuntu-latest steps: - name: "CLA Assistant" - if: (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' + on: + issue_comment: + types: [ created ] + pull_request_target: + types: [ opened,closed,synchronize ] + if: (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: hanxiao/github-action@master + 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.CLA_TOKEN }} with: path-to-signatures: '.github/signatures/v1/cla.json' path-To-cladocument: 'https://github.com/jina-ai/jina/blob/master/.github/CLA.md' - # branch should not be protected branch: 'cla' whitelist: jina-bot - empty-commit-flag: false - blockchain-storage-flag: false + signed-commit-message: '$contributorName has signed the CLA in #$pullRequestNo'