Skip to content

Commit 9baa95f

Browse files
Update CLA assistant workflow (#39)
1 parent fa7f4a6 commit 9baa95f

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/01-CLA-Assistant.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ on:
33
issue_comment:
44
types: [created]
55
pull_request_target:
6-
types: [opened,closed,synchronize]
7-
workflow_dispatch:
8-
6+
types: [opened,closed,synchronize,reopened]
97

108
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
119
permissions:
@@ -19,8 +17,8 @@ jobs:
1917
runs-on: ubuntu-latest
2018
steps:
2119
- name: "CLA Assistant"
22-
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'
23-
uses: SiliconLabsWorkflows/cla-assistant@master
20+
if: ${{ contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA') }} || github.event_name == 'pull_request_target'
21+
uses: SiliconLabsWorkflows/cla-assistant@silabs_flavour_v2
2422
env:
2523
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2624
# the below token should have repo scope and must be manually added by you in the repository's secret
@@ -30,15 +28,10 @@ jobs:
3028
path-to-signatures: "cla_signatures_db.json"
3129
path-to-document: "https://github.com/SiliconLabsSoftware/bluetooth-AoA-example/blob/main/cla.md"
3230
# branch should not be protected
33-
branch: 'debug'
31+
branch: 'cla-database'
3432
allowlist: silabs-*,bot*
3533
# the following are the optional inputs - If the optional inputs are not given, then default values will be taken
3634
remote-organization-name: "SiliconLabsInternal"
3735
remote-repository-name: "contributor-license-agreements"
3836
create-file-commit-message: "Created the CLA database file. CLA Assistant Lite bot created this file."
3937
signed-commit-message: "$contributorName has signed the CLA in $owner/$repo#$pullRequestNo"
40-
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
41-
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
42-
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
43-
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
44-
#use-dco-flag: true - If you are using DCO instead of CLA

0 commit comments

Comments
 (0)