Skip to content

Commit ac8c001

Browse files
Add CODEOWNERS file to define repository owners (#12)
* Add CODEOWNERS file to define repository owners * Add CLA bot workflow for pull requests and comments
1 parent e1abf33 commit ac8c001

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# These owners will be the default owners for everything in the repo.
2+
# Unless a later match takes precedence,they will be requested for review when someone opens a pull request.
3+
* @mlcommons/endpoints-developers
4+
5+
/.github/CODEOWNERS @mlcommons/systems
6+
7+
/.github/workflows/cla.yml @mlcommons/systems
8+
9+
/LICENSE.md @mlcommons/systems

.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)