Skip to content

Commit 1fbadb2

Browse files
authored
Merge pull request #1 from mlcommons/Create-CLA-bot
Create cla.yml
2 parents 25ace9d + 7e14026 commit 1fbadb2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/cla.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
name: "cla-bot"
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_target:
7+
types: [opened,closed,synchronize]
8+
9+
jobs:
10+
cla-check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "MLCommons CLA bot check"
14+
if: (github.event.comment.body == 'recheck') || github.event_name == 'pull_request_target'
15+
# Alpha Release
16+
uses: mlcommons/cla-bot@master
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
# the below token should have repo scope and must be manually added by you in the repository's secret
20+
PERSONAL_ACCESS_TOKEN : ${{ secrets.MLCOMMONS_BOT_CLA_TOKEN }}
21+
with:
22+
path-to-signatures: 'cla-bot/v1/cla.json'
23+
# branch should not be protected
24+
branch: 'main'
25+
allowlist: user1,bot*
26+
remote-organization-name: mlcommons
27+
remote-repository-name: systems
28+
29+
#below are the optional inputs - If the optional inputs are not given, then default values will be taken
30+
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
31+
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
32+
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
33+
#signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
34+
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
35+
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
36+
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'

0 commit comments

Comments
 (0)